import osfrom gcore import Gcoreclient = Gcore( api_key=os.environ.get("GCORE_API_KEY"), # This is the default and can be omitted)client.cdn.resources.delete( 0,)
Copy
Ask AI
{ "errors": [ "The CDN resource is used as primary for common cache feature and can not be deleted. Delete linked resources first [29]" ]}
CDN resources
Delete CDN resource
Delete the CDN resource from the system permanently.
Notes:
Deactivation Requirement: Set the active attribute to false before deletion.
Statistics Availability: Statistics will be available for 365 days after deletion through the statistics endpoints.
Irreversibility: This action is irreversible. Once deleted, the CDN resource cannot be recovered.
DELETE
/
cdn
/
resources
/
{resource_id}
Python
Copy
Ask AI
import osfrom gcore import Gcoreclient = Gcore( api_key=os.environ.get("GCORE_API_KEY"), # This is the default and can be omitted)client.cdn.resources.delete( 0,)
Copy
Ask AI
{ "errors": [ "The CDN resource is used as primary for common cache feature and can not be deleted. Delete linked resources first [29]" ]}