HEX
Server: LiteSpeed
System: Linux s1049.use1.mysecurecloudhost.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: xedaptot (3356)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //lib/python3.6/site-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*.