Delete Collection operation
The Delete Collection operation deletes a collection.
The following table describes the <items> XML elements for the Delete Collection operation:
Elements for the <items> XML element and adapter request for the Delete Collection operation
The following figure shows a sample adapter request for the Delete Collection operation:
Sample adapter request for the Delete Collection operation
<mssccm-request>
<operation-name>create-collection</operation-name>
<arguments>
<target>Server161</target>
<parent-collection-id>COLLROOT</parent-collection-id>
<collection-name>Coll-1</collection-name>
<comment>This collection is being created from adapter.</comment>
<owned-by-this-site>true</owned-by-this-site>
</arguments>
</mssccm-request>
<operation-name>create-collection</operation-name>
<arguments>
<target>Server161</target>
<parent-collection-id>COLLROOT</parent-collection-id>
<collection-name>Coll-1</collection-name>
<comment>This collection is being created from adapter.</comment>
<owned-by-this-site>true</owned-by-this-site>
</arguments>
</mssccm-request>
The following figure shows the adapter response for the sample request:
Sample adapter response for the Delete Collection operation
<mssccm-response>
<metadata>
<response-count>1</response-count>
<status>success</status>
</metadata>
<responses>
<response>
<metadata>
<target>Server161</target>
<status>success</status>
<count>1</count>
</metadata>
<output>
<collection-id>45600013</collection-id>
<collection-variables-count>0</collection-variables-count>
<comment><![CDATA[This collection is being created from adapter.]]></comment>
<current-status>AWAITING_REFRESH</current-status>
<last-change-time>20110218162955.000000+***</last-change-time>
<last-member-change-time>20110218162955.277000+***
</last-member-change-time>
<last-refresh-time>19800101000000.000000+***</last-refresh-time>
<member-class-name>SMS_CM_RES_COLL_45600013</member-class-name>
<name>Coll-1</name>
<owned-by-this-site>True</owned-by-this-site>
<refresh-type>MANUAL</refresh-type>
<replicate-to-sub-sites>False</replicate-to-sub-sites>
<service-windows-count>0</service-windows-count>
</output>
</response>
</responses>
</mssccm-response>
<metadata>
<response-count>1</response-count>
<status>success</status>
</metadata>
<responses>
<response>
<metadata>
<target>Server161</target>
<status>success</status>
<count>1</count>
</metadata>
<output>
<collection-id>45600013</collection-id>
<collection-variables-count>0</collection-variables-count>
<comment><![CDATA[This collection is being created from adapter.]]></comment>
<current-status>AWAITING_REFRESH</current-status>
<last-change-time>20110218162955.000000+***</last-change-time>
<last-member-change-time>20110218162955.277000+***
</last-member-change-time>
<last-refresh-time>19800101000000.000000+***</last-refresh-time>
<member-class-name>SMS_CM_RES_COLL_45600013</member-class-name>
<name>Coll-1</name>
<owned-by-this-site>True</owned-by-this-site>
<refresh-type>MANUAL</refresh-type>
<replicate-to-sub-sites>False</replicate-to-sub-sites>
<service-windows-count>0</service-windows-count>
</output>
</response>
</responses>
</mssccm-response>
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*