def disk_delete(session, dc_ref, file_path):
 LOG.debug('Deleting virtual disk %s', file_path)
 delete_disk_task = session._call_method(session.vim, 'DeleteVirtualDisk_Task', session.vim.service_content.virtualDiskManager, name=str(file_path), datacenter=dc_ref)
 session._wait_for_task(delete_disk_task)
 LOG.info(_LI('Deleted virtual disk %s.'), file_path)

def disk_delete ( session , dc_ref , file_path ) : LOG . debug ( 'Deleting virtual disk %s' , file_path ) delete_disk_task = session . _call_method ( session . vim , 'DeleteVirtualDisk_Task' , session . vim . service_content . virtualDiskManager , name = str ( file_path ) , datacenter = dc_ref ) session . _wait_for_task ( delete_disk_task ) LOG . info ( _LI ( 'Deleted virtual disk %s.' ) , file_path )
deletes a virtual disk .