Method: CloudApp::Client#delete

Defined in:
lib/cloudapp/client.rb

#delete(id) ⇒ CloudApp::Drop

Send the drop to the trash.

Finds the drop by it’s slug id, for example “2wr4”.

Requires authentication.

Parameters:

  • id (String)

    drop id

Returns:



162
163
164
165
# File 'lib/cloudapp/client.rb', line 162

def delete(id)
  drop = Drop.find(id)
  drop.delete
end