AWS Systems Manager
User Guide

Delete a Package

Delete a Package (Console)

You can use the AWS Systems Manager console to delete a package from Distributor. Deleting a package deletes all versions of a package from Distributor.

  1. Open the AWS Systems Manager console at https://console.aws.amazon.com/systems-manager/.

  2. In the navigation pane, choose Distributor.

  3. On the Distributor home page, choose the package that you want to delete.

  4. On the package's details page, choose Delete package.

  5. When you are prompted to confirm the deletion, choose Delete package.

Delete a Package (CLI)

You can use the AWS CLI to delete a package from Distributor.

  1. Run the following command to list documents for specific packages. In the results of this command, look for the package that you want to delete.

    aws ssm list-documents --filters [{\"Key\":\"Name\",\"Values\":[\"package_name\",\"another_package_name\"]}]
  2. Run the following command to delete a package version. Replace package_name with the package name.

    aws ssm delete-document --name "package_name"
  3. Run the list-documents command again to verify that the package version was deleted. The package version that you deleted should no longer be found.

    aws ssm list-documents --filters [{\"Key\":\"Name\",\"Values\":[\"package_name\",\"another_package_name\"]}]

For information about other options you can use with the list-documents command, see list-documents in the AWS Systems Manager section of the AWS CLI Command Reference. For information about other options you can use with the delete-document command, see delete-document.