Deletes the Systems Manager document and all instance associations to the document.
ssm_delete_document(Name, DocumentVersion, VersionName, Force)
[required] The name of the document.
The version of the document that you want to delete. If not provided, all versions of the document are deleted.
The version name of the document that you want to delete. If not provided, all versions of the document are deleted.
Some SSM document types require that you specify a Force
flag before
you can delete the document. For example, you must specify a Force
flag to delete a document of type ApplicationConfigurationSchema
. You
can restrict access to the Force
flag in an AWS Identity and Access
Management (IAM) policy.
svc$delete_document( Name = "string", DocumentVersion = "string", VersionName = "string", Force = TRUE|FALSE )
Before you delete the document, we recommend that you use DeleteAssociation to disassociate all instances that are associated with the document.