amplify-cli icon indicating copy to clipboard operation
amplify-cli copied to clipboard

amplify delete command doesn't really delete all files

Open gustavo-rios opened this issue 8 years ago • 6 comments

When executing "amplify delete" you receive a message that says: "Are you sure you want to continue?(This would delete all the project from the cloud and wipe out all the local amplify resource files)"

But I see that at least a couple of files are actually left in the project folder, .amplifyrc and src/aws-exports.js

This is using VS Code as my editor and Angular as the base project.

Just FYI

gustavo-rios avatar Oct 30 '18 19:10 gustavo-rios

@gustavo-rios Yes, as you can observe in our main README, the delete functionality is an experimental feature and we're waiting on user feedback on this like one to finalize on the feature and add enhancements to it. I'll mark this as an enhancement for our delete commands to delete the aws_exports file (or at least have a flag to do so).

kaustavghosh06 avatar Nov 05 '18 20:11 kaustavghosh06

@kaustavghosh06 HI, I also executed amplify delete but I found DynamoDB, S3 buckets and Cognito User Pool still exist. Hope delete could clear all resources related to that Amplify Project.

GeekEast avatar Apr 17 '19 01:04 GeekEast

@GeekEast I'd check the Cloudformation logs (Amplify seems to be using Cloudformation stacks for all its resource creation/deletion). When I've created userpools with only Cloudformation (no Amplify), I've had issues with trying to delete them (I think because another resource depended on it).

Honestly though, I'm bothered by the fact that I actually CAN delete my userpools this way. It's a little scary to me that running amplify delete in the wrong environment could completely destroy all your user authentication data.

traviswimer avatar May 07 '19 17:05 traviswimer

@GeekEast Are you sure that amplify delete didn't get rid of the user-pool and the dynamo db tables? It should delete everything except S3 buckets (on which we set the "Retain") policy.

kaustavghosh06 avatar Aug 14 '19 00:08 kaustavghosh06

Closing this in favor of a duplicate issue #81

kaustavghosh06 avatar Aug 14 '19 00:08 kaustavghosh06

This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels for those types of questions.

github-actions[bot] avatar May 27 '21 04:05 github-actions[bot]