Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to delete a single resource (ideally by "resource name") #2677

Closed
blomm opened this issue Nov 4, 2019 · 5 comments
Closed

Ability to delete a single resource (ideally by "resource name") #2677

blomm opened this issue Nov 4, 2019 · 5 comments

Comments

@blomm
Copy link

blomm commented Nov 4, 2019

Is your feature request related to a problem? Please describe.
I've just run amplify delete and deleted all resources in my environment (it did warn me)

Describe the solution you'd like
What i really would have liked to do was delete a single api-gateway or storage or lambda

Describe alternatives you've considered
I ran amplify delete, but this clearly isn't what I was looking for.

Additional context
I read the docs, but maybe I missed something?

@jordanranz jordanranz transferred this issue from aws-amplify/amplify-js Nov 4, 2019
@kaustavghosh06
Copy link
Contributor

kaustavghosh06 commented Nov 4, 2019

@blomm You can just an amplify remove <category> followup by an amplify push to remove a specific resource from the cloud.

@blomm
Copy link
Author

blomm commented Nov 4, 2019

are you sure? it's not documented.
when you say category, do you mean 'api' or 'storage'? ideally it would prompt me which resource with the category to remove, so I don't have to remove the whole 'category'

... update: it's not in the cli docs: https://github.com/aws-amplify/amplify-cli
but it is mentioned in the getting started: https://aws-amplify.github.io/docs/js/start

... and it appears to be the whole category that you must delete :
"If you no longer want to use a service you can delete it with amplify remove {category-name}"

@kaustavghosh06
Copy link
Contributor

@blomm It asks you to remove a specific resource as a part of the workflow when you run ampllify remove <category>. Optionally you can run amplify remove <category> <resource-name>

@blomm
Copy link
Author

blomm commented Nov 5, 2019

thanks @kaustavghosh06, are you able to update the cli documentation to include this information, for others in the future?

@github-actions
Copy link

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 github-actions bot locked as resolved and limited conversation to collaborators May 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants