When playing around with the Amplify settings, I discover the Amplify Studio. There you could use DataStore for the existing project but that polluted my generated types for the project.
I can manually delete all _version and other keys, but when running amplify codegen -> the unwanted keys will be back.
I want to remove DataStore from my project but I can't find how?
2 Answers
I was recently able to accomplish this by doing the following:
- First run:
amplify update api - Select from one of the below mentioned services:
GraphQL - Select a setting to edit:
Disable conflict detection - Update API:
amplify push
After the update the _version and _lastChangedAt fields were still on the DynamoDB objects, but you can manually remove those if you want them gone.
You can run amplify api remove in your project root folder.
The other option might be to remove backend from Amplify Console(this is eu-central-1 region, select your region), select your app, select backend environment and there is option 'delete' from dropdown menu