Path parameters
ParameterDescription
id
any
requiredFile Id
Query parameters
ParameterDescription
library
string
optionalOne of sharepoint, msteams, google, onedrive, box, dropbox, cloudfiles, s3, azure, hubspot, azurefiles, sftp
driveId
string
optionalDrive Id. Required when library is sharepoint or msteams.
Header parameters
ParameterDescription
Authorization
string
optionalReplace the API_Key placeholder with your actual API key.

Example request

curl --request DELETE \
     --url 'https://api.cloudfiles.io/v1/files/:id?library=string&driveId=string' \
     --header 'accept: application/json' \
     --header 'authorization: Bearer API_Key'
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
myHeaders.append("authorization", "Bearer API_Key");

var requestOptions = {
   method: 'DELETE',
   headers: myHeaders,
   redirect: 'follow'
};

fetch("https://api.cloudfiles.io/v1/files/:id?library=string&driveId=string", requestOptions)
   .then(response => response.text())
   .then(result => console.log(result))
   .catch(error => console.log('error', error));
require "uri"
require "json"
require "net/http"

url = URI("https://api.cloudfiles.io/v1/files/:id?library=string&driveId=string")

https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true

request = Net::HTTP::Delete.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
request["authorization"] = "Bearer API_Key"

response = https.request(request)
puts response.read_body
import requests
import json

url = "https://api.cloudfiles.io/v1/files/:id?library=string&driveId=string"

payload = {}
headers = {
   'accept': 'application/json',
   'content-type': 'application/json',
   'authorization': 'Bearer API_Key'
}

response = requests.request("DELETE", url, headers=headers, data=payload)

print(response.text)