Cant remove API after removing all dependencies
See original GitHub issueDescribe the bug
I want to remove my existing api with amplify remove api
. It’s true that some of functions are using the API (Appsync and as a DDB storage). Therefore, I removed all related resources to the API from my functions.
After doing that, I tried the remove the api again.
I get the same error:
Resource cannot be removed because it has a dependency on another resource
Amplify CLI Version 4.37.0
To Reproduce
- amplify add api.
- configure schema.
- amplify add function > configure resources > enable api and storage > choose the model you’ve created.
- amplify push
- amplify update function > configure resources > unselect api and storage
- amplify remove api
- Error:
Resource cannot be removed because it has a dependency on another resource
Expected behavior
After removing the depencies, ampify remove api
should just work!
Desktop (please complete the following information):
- OS: Windows
Additional context
Is there a way to force delete the API perhaps with -force
irregardless of dependencies?
The purpose is so that I can drop the entire table and recreate them in order to truncate my tables.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:10 (6 by maintainers)
I have to manually remove the storage in amplify-meta file and then can remove the storage.
@nubpro Sorry on the delay will get back to you on this