def delete(path, options={})
      path = path.sub(/^\//, '')
      path.sub! /\/$/, ''
      begin
        api_response(:post, 'fileops', 'delete', :path => Dropbox.check_path(path), :root => root(options), :ssl => @ssl)
      rescue UnsuccessfulResponseError => error
        raise FileNotFoundError.new(path) if error.response.kind_of?(Net::HTTPNotFound)
        raise error
      end
      return true
    end
def delete(path, options={})
      path = path.sub(/^\//, '')
      path.sub! /\/$/, ''
      begin
        api_response(:post, 'fileops', 'delete', :path => Dropbox.check_path(path), :root => root(options), :ssl => @ssl)
      rescue UnsuccessfulResponseError => error
        raise FileNotFoundError.new(path) if error.response.kind_of?(Net::HTTPNotFound)
        raise error
      end
      return true
    end
Deletes a file or folder at the given path. The path is assumed to be
 relative to the configured mode's root.

 Raises FileNotFoundError if the file or folder does not exist at +path+.

 Options:

 +mode+:: Temporarily changes the API mode. See the MODES array.

 TODO The API documentation says this method returns 404 if the path does not exist, but it actually returns 5xx.