```ruby
module Api
  class CloudVolumesController < BaseController
  end
end
```

Add delete_resource method that does queued delete of cloud volumes
user
```ruby
module Api
  class CloudVolumesController < BaseController
    def delete_resource(type, id, _data)
      cloud_volume = resource_search(id, type, collection_class(:cloud_volumes))
      task_id = cloud_volume.delete_volume_queue(User.current_user)
      action_result(true, "Deleting Cloud Volume #{cloud_volume.name}", :task_id => task_id)
    rescue => err
      action_result(false, err.to_s)
    end
  end
end
```
assistant