When attempting to delete an EBS snapshot, I receive an error stating "The snapshot is currently in use by an AMI"

Last updated: 2019-04-18

When I attempt to delete an Amazon Elastic Block Store (EBS) snapshot, I receive an error similar to the following:

snap-xxxxxxxx: The snapshot snap-xxxxxxxx is currently in use by ami-xxxxxxxx


EBS-backed Amazon Machine Images (AMIs) include EBS snapshots. If you attempt to delete an EBS snapshot associated with an active AMI, you receive this error.

Note: Public snapshots can't be deleted. If you try to delete a public snapshot, you'll receive an "unknown error occurred" message.

Before you attempt to delete an EBS snapshot, make sure that the AMI isn’t currently in use. AMIs can be used with a variety of AWS services, such as Amazon Elastic Compute Cloud (Amazon EC2), AWS Auto Scaling, AWS CloudFormation, and more. If you delete an AMI that’s used by another service or application, the function of that service or application might be affected.

If you no longer need the EBS snapshot or its associated AMI, deregister the AMI. Then, delete the EBS snapshot in the Amazon EC2 console:

  1. Note the AMI ID in the error message.
  2. In the left navigation pane of the Amazon EC2 console, choose AMIs.
  3. Find the AMI noted in the error message, select it, and then choose Deregister from the Actions menu.
    Note: If you don’t see the AMI that you’re looking for, check any other AWS Regions that you might have used.
  4. Delete the EBS snapshot by using the EC2 console or the AWS CLI.

Did this article help you?

Anything we could improve?

Need more help?