def delete_file(file_path, options = {})
      # Default values
      options[:root_path] = 'app' if ! options.has_key?(:root_path)

      # Entry point
      url = "#{@client.app_info[:launcher_server]}#{API_VERSION}/nfs/file/#{options[:root_path]}/#{SafeNet.escape(file_path)}"

      # API call
      uri = URI(url)
      http = Net::HTTP.new(uri.host, uri.port)
      req = Net::HTTP::Delete.new(uri.path, {
        'Authorization' => "Bearer #{@client.key_helper.get_valid_token()}",
      })
      res = http.request(req)
      res.code == "200" ? true : JSON.parse(res.body)
    end
def delete_file(file_path, options = {})
      # Default values
      options[:root_path] = 'app' if ! options.has_key?(:root_path)

      # Entry point
      url = "#{@client.app_info[:launcher_server]}#{API_VERSION}/nfs/file/#{options[:root_path]}/#{SafeNet.escape(file_path)}"

      # API call
      uri = URI(url)
      http = Net::HTTP.new(uri.host, uri.port)
      req = Net::HTTP::Delete.new(uri.path, {
        'Authorization' => "Bearer #{@client.key_helper.get_valid_token()}",
      })
      res = http.request(req)
      res.code == "200" ? true : JSON.parse(res.body)
    end
Delete a file.
 Only authorised requests can invoke the API.

 Usage: my_client.nfs.delete_file("/docs/hello.txt")
 Adv.Usage: my_client.nfs.delete_file("/docs/hello.txt", root_path: "app")
 Fail: {"errorCode"=>-1503, "description"=>"FfiError::InvalidPath"}
 Success: true

 Reference: https://maidsafe.readme.io/docs/nfs-delete-file