White Papers
Dellâ„¢ Lifecycle Controller 2 Web Services Interface Guide for Windows  Version: 2.1.0 
115 
13.6  Delete Partition 
This method is for deleting a partition on a storage device. When this method is successfully executed, 
the instance of DCIM_OpaqueManagementData representing the desired partition along with the 
association instance of DCIM_ServiceAffectsElement will be deleted. The AvailableSize property of the 
associated storage media will increase by the size of the deleted partition.  
Invoke DeletePartition() with the following parameters and syntax: 
PartitionIndex: The PartitionIndex property of the DCIM_OpaqueManagementData instance 
that represents the partition to be removed 
1 to 16 
EXAMPLE: 
winrm i DeletePartition http://schemas.dell.com/wbem/wscim/1/cim-
schema/2/DCIM_PersistentStorageService 
?SystemCreationClassName=DCIM_ComputerSystem 
+CreationClassName=DCIM_PersistentStorageService 
+SystemName=DCIM:ComputerSystem 
+Name=DCIM:PersistentStorageService  
-r:https://[IPADDRESS]:443/wsman 
-u:[USER] -p:[PASSWORD] -auth:basic 
-encoding:utf-8 -SkipCNCheck -SkipCACheck  
-file:[DIRECTORYPATH]\DeletePartition.xml  
The input file DeletePartition.xml is shown below: 
<p:DeletePartition_INPUT xmlns:p="http://schemas.dell.com/wbem/wscim/1/cim-
schema/2/DCIM_PersistentStorageService"> 
<p:PartitionIndex>1</p:PartitionIndex>  
</p:DeletePartition_INPUT>  
OUTPUT: 
When this method is executed, a ReturnValue or error message is returned.  
DeletePartition_OUTPUT 
 ReturnValue = 0 
An index that does not exist in the XML file may yield the following error message: 
DeletePartition_OUTPUT 
 Message = Invalid partition index 
 MessageID = VF018 
 ReturnValue = 2 
13.7  Format Partition 
This method is for formatting a partition of the type specified by the user.  










