HEX
Server: LiteSpeed
System: Linux s1080.usc1.mysecurecloudhost.com 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64
User: justofft (2594)
PHP: 7.3.33
Disabled: NONE
Upload Files
File: //usr/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*.