Can You Remove Datastore from an Amplify Project?

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?

4

2 Answers

I was recently able to accomplish this by doing the following:

  1. First run: amplify update api
  2. Select from one of the below mentioned services: GraphQL
  3. Select a setting to edit: Disable conflict detection
  4. 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Alexander Ross

Alexander Ross

Gaming, Esports & Interactive Media Writer

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.

Share this article
Twitter Facebook Pinterest