use of com.emc.storageos.vnxe.requests.DeleteStorageResourceRequest in project coprhd-controller by CoprHD.
the class VNXeApiClient method deleteLun.
/**
* delete lun with async call
*
* @param fsId
* file system Id
* @param forceSnapDeletion
* whether to delete snapshots as well
* @return VNXeCommandJob
* @throws VNXeException
*/
public VNXeCommandJob deleteLun(String lunId, boolean forceSnapDeletion) throws VNXeException {
_logger.info("deleting lun: " + lunId);
DeleteStorageResourceRequest req = new DeleteStorageResourceRequest(_khClient);
return req.deleteLunAsync(lunId, forceSnapDeletion);
}
Aggregations