The deleteRecoveryPlan method deletes the recovery plan that is passed as parameter.
Synopsis
DeleteRecoveryPlanTask deleteRecoveryPlan(RecoveryPlan plan)
The plan parameter specifies the recovery plan that must be deleted
DeleteRecoveryPlanTask is a Task object that contains information about the status of the operation. Site Recovery Manager Server retains the object for 30 minutes after the task finishes.
The IsDeleteRecoveryPlanComplete returns true if the task is complete.
The GetDeleteRecovryPlanFailure returns the failure that occurs during the delete operation. If the plan or its peer is not in a valid state, the task fails with InvalidState.
Faults
RuntimeFault
For information about the faults that Site Recovery Manager throws, see Faults in Site Recovery Manager API.