Home >

LunaCM Command Reference Guide > LunaCM Commands > partition > partition archive delete

partition archive delete

Delete the specified partition on the backup device in the specified slot.

Syntax

partition archive d -s <slot> -par <partition name> -pas <password>

Parameter Shortcut Description
-commandtimeout -ct The command timeout for network communication. The default timeout is 10 seconds. The maximum timeout is 3600. This option can be used to adjust the timeout value to account for network latency. (optional)
-debug -de Turn on additional error information. (optional)
-hostname -ho Host name of remote workstation running remote backup server. (required when -s remote is used)
-partition -par Partition to delete on the backup device. (maximum length of 64 characters) .
-password -pas User password for the specified partition.
-port -po Port number for remote backup server on remote workstation. (required when -s remote is used)
-slot -s

Target slot containing the backup device. It can be specified by any of the following:

<slot number>, if the backup slot is in the current system.

remote -hostname <host name> -port <port number> if the backup device is in a remote work station.

direct to specify a USB attached backup device. If you know the slot number that contains the USB attached HSM, you can specify that slot number explicitly (for example, -s 5)

etoken to specify a SFF backup (eToken 7300) inserted into a SafeNet PED connected to the local HSM or connected by USB to a host computer running PedServer.

Example

Note:  The partition archive delete command cannot be issued while the currently selected slot is the SafeNet Backup HSM. Set your lunacm slot to any other slot, to allow partition archive delete to work.

lunacm:> slot set -s 1
 Current Slot Id: 1 (Luna User Slot 6.22.0 (PW) Signing With Cloning Mode)

Command Result : No Error

lunacm:> par ar delete -slot 6 -partition JRLegacyPPSOK6 -password userpin

 Logging in as the SO on slot 6.

 Partition JRLegacyPPSOK6 was successfully deleted on slot 6.

Command Result : No Error

lunacm:>

 

Example: Delete all Objects from an SFF eToken  

lunacm:>partition archive delete -slot eToken      

        WARNING: continuing the backup operation will wipe out all keys on the backup token! 
        Are you sure you wish to continue? 

        Type 'proceed' to continue, or 'quit' to quit now ->proceed 

Operation in progress, please wait. 

Command Result : No Error 
 

 

Example: Attempt to Delete Objects from an Empty SFF eToken

lunacm:>partition archive delete -slot eToken  

        WARNING: continuing the backup operation will wipe out all keys on the backup token! 
        Are you sure you wish to continue? 

        Type 'proceed' to continue, or 'quit' to quit now ->proceed 

Operation in progress, please wait. 

Command Result : 0x20 (CKR_DATA_INVALID)