@shinyaz

agentcore remove all does not delete AWS resources

1 min read

I ran agentcore remove all --force expecting it to tear down my deployed agent, and got this:

Output
{
  "success": true,
  "message": "All schemas reset to empty state",
  "note": "Your source code has not been modified. Run `agentcore deploy` to apply changes to AWS."
}

remove all only resets the agents / memories / credentials arrays in agentcore.json to empty. The CloudFormation stack and AgentCore Runtime resources on AWS remain untouched. To actually delete AWS resources, you need to deploy the empty state:

Terminal
agentcore remove all --force
agentcore deploy -y              # This tears down the CloudFormation stack

The CLI follows a consistent pattern: agentcore.json is the declarative state definition, and deploy applies that state to AWS. remove only modifies the local definition — AWS changes always go through deploy. Not intuitive at first, but it prevents accidental deletions.

Share this post

Shinya Tahara

Shinya Tahara

Solutions Architect @ AWS

I'm a Solutions Architect at AWS, providing technical guidance primarily to financial industry customers. I share learnings about cloud architecture and AI/ML on this site.The views and opinions expressed on this site are my own and do not represent the official positions of my employer.