Method: ExistAPI#remove_collection

Defined in:
lib/eXistAPI.rb

#remove_collection(path) ⇒ Object

Removes collection with specified path.

  • Args :

    • path -> Path of the collection in db.

  • Returns :

    • the result of call

  • Raises :

    • ExistException -> if failed to remove collection.



179
180
181
182
183
184
185
186
# File 'lib/eXistAPI.rb', line 179

def remove_collection(path)
  result = @client.call("removeCollection", path)
  return result
rescue XMLRPC::FaultException => e
  raise e    
rescue
  raise ExistException.new("Failed to remove Collection", 3), caller
end