Description
Running remove all clears the CLI's local agentcore.json state, but leaves all resources deployed in the AWS account. This creates an inconsistent state where the CLI thinks there are no resources but they still exist in AWS.
Reporter
davrthur
Category
Functional Bug
Steps to Reproduce
- Create and deploy a project with agents, memory, etc.
- Run
agentcore remove all
- Check AWS account - resources still exist
- Run
agentcore deploy - error "[error] Validate project → No agents defined in project. Add at least one agent with 'agentcore add agent' before deploying"
Expected Behavior
Either:
remove all should delete resources from AWS, or
remove all should clearly state it only removes local configuration and warn about orphaned AWS resources
Actual Behavior
- Local state is cleared
- AWS resources remain deployed
- Running deploy after remove all fails because CLI thinks project is empty
- Orphaned resources remain in AWS account
Impact
High - creates orphaned resources and confusing state.
Suggestion
Consider:
- Renaming to
remove all --local to be explicit about scope
- Adding a
remove all --aws flag to delete AWS resources
- Warning users about orphaned resources when running remove all
Description
Running
remove allclears the CLI's local agentcore.json state, but leaves all resources deployed in the AWS account. This creates an inconsistent state where the CLI thinks there are no resources but they still exist in AWS.Reporter
davrthur
Category
Functional Bug
Steps to Reproduce
agentcore remove allagentcore deploy- error "[error] Validate project → No agents defined in project. Add at least one agent with 'agentcore add agent' before deploying"Expected Behavior
Either:
remove allshould delete resources from AWS, orremove allshould clearly state it only removes local configuration and warn about orphaned AWS resourcesActual Behavior
Impact
High - creates orphaned resources and confusing state.
Suggestion
Consider:
remove all --localto be explicit about scoperemove all --awsflag to delete AWS resources