Destroy specified SR, removing SR-record from database and remove SR from disk. (In order to affect this operation the appropriate device_config is read from the specified SR's PBD on current host)

Parameters
name type description
session_id session valid session reference
sr SR The SR to destroy
Errors
name arguments description
SR_HAS_PBD sr The SR is still connected to a host via a PBD. It cannot be destroyed.