aws ssm delete-document
Deletes the Amazon Web Services Systems Manager document (SSM document) and all managed node associations to the document. AWS CLI reference
1 example 4 options Its page in the AWS CLI reference
Examples
To delete a document
The following delete-document example deletes a Systems Manager document.
aws ssm delete-document --name "Example"Identify--nameThe name of the document.This command produces no output.
For more information, see Creating Systems Manager Documents in the AWS Systems Manager User Guide.
Options
--document-versionThe version of the document that you want to delete.--forceSome SSM document types require that you specify a Force flag before you can delete the document.--nameThe name of the document.--version-nameThe version name of the document that you want to delete.