destroy - Destroys Object

Contents
csp
Contents
Use the destroy command to destroy an object. This command has the following format:
destroy model [-n] mh=model_handle | destroy association [-n] rel=relation lmh=left_model_handle rmh=right_model_handle| destroy alarm [-n] aid=alarm_id [lh=landscape_handle]
  • -n
    If the -n (no prompt) option is specified with the destroy command, the system does not prompt for confirmation. This option is useful in CLI scripts.
    Unless the -n option is specified, one of the following messages is always displayed:
    destroy model: are you sure? destroy association: are you sure? destroy alarm: are you sure?
    Valid responses are y, yes, Y, Yes, n, no, N, and No.
destroy alarm
Destroys the alarm specified by alarm_id in the landscape that is specified by landscape_handle. Unless the -n option is specified, destroy alarm prompts you for confirmation before destroying the alarm. If the landscape_handle is not specified, the command destroys the alarm that is specified by alarm_id in the current landscape. Use the show alarms command to determine the alarm_ids for a model.
If the destroy alarm command is entered with a valid alarm_id and a valid landscape_handle, the following message is displayed:
destroy alarm: successful
Examples: destroy alarm
$ destroy alarm aid=300 destroy alarm: are you sure? y destroy alarm: successful
destroy association
Destroys the association (instance of the relation) between the model with left_model_handle and the model with right_model_handle. Unless the -n option is specified, destroy association prompts you for confirmation before destroying the association.
If destroy association is entered with a valid relation between a valid left_model_handle and right_model_handle, the following message is displayed:
destroy association: successful
Example: destroy association
$ destroy association rel=Lost_and_Found lmh=0x400001 rmh=0x40h0142 destroy association: are you sure? y destroy association: successful
destroy model
Destroys the model with the specified model_handle. Unless the n option is specified, destroy model prompts you for confirmation before destroying the model.
If destroy model is entered with a valid model_handle, the following message is displayed:
destroy model: successful
Example: destroy model
$ destroy model mh=0xa600715 Following model will be destroyed: Model_Handle      ->     0xa600715 Model_Type_Handle ->     0x10004 Model_Name        ->     garciaparra Model_Type_Name   ->     User destroy model: are you sure? y destroy model: successful