HEX
Server: Apache
System: Linux srv1.prosuiteplus.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: prosuiteplus (1001)
PHP: 8.3.20
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/awscli/examples/ssm/deregister-target-from-maintenance-window.rst
**To remove a target from a maintenance window**

The following ``deregister-target-from-maintenance-window`` example removes the specified target from the specified maintenance window. ::

    aws ssm deregister-target-from-maintenance-window \
        --window-id "mw-ab12cd34ef56gh78" \
        --window-target-id "1a2b3c4d-1a2b-1a2b-1a2b-1a2b3c4d-1a2"

Output::

    {
        "WindowId":"mw-ab12cd34ef56gh78",
        "WindowTargetId":"1a2b3c4d-1a2b-1a2b-1a2b-1a2b3c4d-1a2"
    }

For more information, see `Update a Maintenance Window (AWS CLI) <https://docs.aws.amazon.com/systems-manager/latest/userguide/maintenance-windows-cli-tutorials-update.html>`__ in the *AWS Systems Manager User Guide*.