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.rules.delete( rule_id=0, resource_id=0,)
Copy
Ask AI
{ "errors": [ "Deletion of this instance is currently not possible as it is in an active state. Please deactivate it before attempting the deletion request again." ]}
Rules
Delete rule
Delete the rule from the system permanently.
Notes:
Deactivation Requirement: Set the active attribute to false before deletion.
Irreversibility: This action is irreversible. Once deleted, the rule cannot be recovered.
DELETE
/
cdn
/
resources
/
{resource_id}
/
rules
/
{rule_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.rules.delete( rule_id=0, resource_id=0,)
Copy
Ask AI
{ "errors": [ "Deletion of this instance is currently not possible as it is in an active state. Please deactivate it before attempting the deletion request again." ]}