Method: CouchObject::Database#delete
- Defined in:
- lib/couch_object/database.rb
#delete(path, revision) ⇒ Object
Send a DELETE request to the path which is relative to the database path so calling with with “bar” as the path in the “foo_db” database will call host:port/foo_db/bar. Returns a Response object
81 82 83 84 |
# File 'lib/couch_object/database.rb', line 81 def delete(path, revision) Response.new(@server. delete("/#{Utils.join_url(@dbname, path)}?rev=#{revision}")).parse end |