Clearing all maintenance window definitions from a list of monitors

You can use the ApplyMaintenanceWindowTemplateToMonitors method to clear maintenance window definitions.

The following message will purge all recurring maintenance windows from the monitors listed therein:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
                  xmlns:prov="http://www.gomeznetworks.com/schemas/provisioning">
   <soapenv:Header/>
   <soapenv:Body>
      <prov:ApplyMaintenanceWindowTemplateRequest>
         <prov:Credentials>
            <prov:UserName>testuser</prov:UserName>
            <prov:Password>testpassword</prov:Password>
         </prov:Credentials>
         <prov:MonitorIds>
            <!--Zero or more repetitions:-->
            <prov:MonitorId>326334</prov:MonitorId>
            <prov:MonitorId>328141</prov:MonitorId>
            <prov:MonitorId>328196</prov:MonitorId>
         </prov:MonitorIds>
         <prov:RecurringMaintenanceWindows/>
      </prov:ApplyMaintenanceWindowTemplateRequest>
   </soapenv:Body>
</soapenv:Envelope>

You can perform similar operation to purge one-time maintenance window definitions from a list of monitors. For example:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
                  xmlns:prov="http://www.gomeznetworks.com/schemas/provisioning">
   <soapenv:Header/>
   <soapenv:Body>
      <prov:ApplyMaintenanceWindowTemplateRequest>
         <prov:Credentials>
            <prov:UserName>testuser</prov:UserName>
            <prov:Password>testpassword</prov:Password>
         </prov:Credentials>
         <prov:MonitorIds>
            <!--Zero or more repetitions:-->
            <prov:MonitorId>326334</prov:MonitorId>
            <prov:MonitorId>328141</prov:MonitorId>
            <prov:MonitorId>328196</prov:MonitorId>
         </prov:MonitorIds>
         <prov:OneTimeMaintenanceWindows/>
      </prov:ApplyMaintenanceWindowTemplateRequest>
   </soapenv:Body>
</soapenv:Envelope>