Tomas Vancoillie
Tomas Vancoillie

Reputation: 3878

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?

Upvotes: 1

Views: 889

Answers (2)

Zac Clark
Zac Clark

Reputation: 145

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.

Upvotes: 3

Chris
Chris

Reputation: 1027

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

Upvotes: 2

Related Questions