Delete a digital product
DELETE
/digital_products/{id}Costs 2 rate-limit points · Rate limits
Permanently delete a digital product and its asset links. This does not delete the underlying assets themselves: only the association between the assets and the Shopify product.
Path parameters
idstringRequiredThe digital product ID
Headers
X-Auth-TokenstringRequiredAPI key for authentication
Errors
404
Resource not found
DELETE/digital_products/{id}
curl -X DELETE "https://app.filemonk.io/api/v1/external/digital_products/{id}" \
-H "X-Auth-Token: $FILEMONK_API_KEY"const res = await fetch("https://app.filemonk.io/api/v1/external/digital_products/{id}", {
method: "DELETE",
headers: {
"X-Auth-Token": process.env.FILEMONK_API_KEY,
},
});
const data = await res.json();import os
import requests
res = requests.delete(
"https://app.filemonk.io/api/v1/external/digital_products/{id}",
headers={"X-Auth-Token": os.environ["FILEMONK_API_KEY"]},
)
data = res.json()require "net/http"
require "json"
uri = URI("https://app.filemonk.io/api/v1/external/digital_products/{id}")
req = Net::HTTP::Delete.new(uri, "X-Auth-Token" => ENV["FILEMONK_API_KEY"])
res = Net::HTTP.start(uri.host, uri.port, use_ssl: true) { |http| http.request(req) }
data = JSON.parse(res.body)Response
No body
{
"error": "API key is required"
}{
"error": "Resource not found"
}No body