v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-141381,185842.7 KB

Deletes the Amazon Web Services Systems Manager document (SSM document) and all managed node associations to the document.

Before you delete the document, we recommend that you use DeleteAssociation to disassociate all managed nodes that are associated with the document.

post/#X-Amz-Target=AmazonSSM.DeleteDocument

Headers

X-Amz-Target'AmazonSSM.DeleteDocument' required

Request body

Namestring required

The name of the document.

DocumentVersionstring

The version of the document that you want to delete. If not provided, all versions of the document are deleted.

VersionNamestring

The version name of the document that you want to delete. If not provided, all versions of the document are deleted.

Forceboolean

Some SSM document types require that you specify a <code>Force</code> flag before you can delete the document. For example, you must specify a <code>Force</code> flag to delete a document of type <code>ApplicationConfigurationSchema</code>. You can restrict access to the <code>Force</code> flag in an Identity and Access Management (IAM) policy.

Response

Success

DeleteDocumentResult required