Search in sources :

Example 6 with DeleteStorageResourceRequest

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);
}
Also used : DeleteStorageResourceRequest(com.emc.storageos.vnxe.requests.DeleteStorageResourceRequest)

Aggregations

DeleteStorageResourceRequest (com.emc.storageos.vnxe.requests.DeleteStorageResourceRequest)6 VNXeLun (com.emc.storageos.vnxe.models.VNXeLun)2 BlockLunRequests (com.emc.storageos.vnxe.requests.BlockLunRequests)2 ArrayList (java.util.ArrayList)2