Delete variants
You can delete variants via API with a simple cURL command.
curl -X DELETE api.cloudflare.com/client/v4/account/:account_id/images/v1/variants/:variant_name
--header 'Authorization: Bearer :token'
You will receive a response similar to this:
{
"result": {},
"success": true,
"errors": [],
"messages": []
}