White Papers
Dell™ Lifecycle Controller 2 Web Services Interface Guide for Linux  Version: 2.1.0 
132 
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.  
Note: A locked(attached) partition cannot be deleted. It must be detached first. 
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: 
wsman invoke -a DeletePartition http://schemas.dmtf.org/wbem/wscim/1/cim-
schema/2/root/dcim/DCIM_PersistentStorageService 
?SystemCreationClassName=DCIM_ComputerSystem,CreationClassName=DCIM_PersistentStorageServic
e,SystemName=DCIM:ComputerSystem,Name=DCIM:PersistentStorageService" -h $IPADDRESS -V -v -c 
dummy.cert -P 443 
-u $USERNAME -p $PASSWORD -J DeletePartition.xml -j utf-8 –y basic 
The input file DeletePartition.xml is shown below: 
<p:DeletePartition_INPUT xmlns:p="http://schemas.dmtf.org/wbem/wscim/1/cim-
schema/2/root/dcim/DCIM_PersistentStorageService"> 
<p:PartitionIndex>1</p:PartitionIndex>  
</p:DeletePartition_INPUT> 
OUTPUT: 
When this method is executed, a ReturnValue or error message is returned.  
<n1:DeletePartition_OUTPUT> 
 <n1:ReturnValue>0</n1:ReturnValue> 
</n1:DeletePartition_OUTPUT> 
An index that does not exist in the XML file may yield the following error message: 
<n1:DeletePartition_OUTPUT> 
 <n1:Message>Invalid partition index</n1:Message> 
 <n1:MessageID>VF018</n1:MessageID> 
 <n1:ReturnValue>2</n1:ReturnValue> 
</n1:DeletePartition_OUTPUT> 
13.7  Format Partition 
This method is for formatting a partition of the type specified by the user.  
Use the following algorithm to successfully format an existing partition: 
  Enumerate the DCIM_PersistentStorageService class 










