Home >

LunaSH Command Reference Guide > LunaSH Commands > partition > partition clear

partition clear

Delete all objects on a partition. Because this is a destructive command, the user is prompted to proceed/quit before the erasure occurs.

For password-authenticated HSMs, if the password isn't entered on the command line, the user will be prompted for it interactively. User input will be echoed as asterisks.

For PED-authenticated HSMs, PED action is required, and the Partition Owner PED Key (black) is requested. Any password provided at the command line is ignored. However, if a PED PIN was specified when the HSM partition was created, that PED PIN must be entered at the PED keypad.

Syntax

partition clear -partition <partition_name> [-password <password>] [-force]

Option Shortcut

Parameter

Description
-force -f . Force the action without prompting.
-partition -par <partition name> Specifies the name of the partition from which all objects are to be erased. To obtain a list of partitions, use the partition list command.
-password -pas <partition password> The password to be used as login credential by the partition's user. This parameter is required on password-authenticated HSMs.

Example

lunash:>partition clear -partition mylegacypar1


 Please enter the user password for the partition:
  > ********

CAUTION:  Are you sure you wish to clear the partition named:
            mylegacypar1
          This will ERASE all the objects on the partition.

          Type 'proceed' to clear the partition, or 'quit'
          to quit now.
          > proceed

'partition clear' successful.


Command Result : 0 (Success)