Delete variants
You can delete variants via the Images dashboard or API. The only variant you cannot delete is public.
- Log in to the Cloudflare dashboard ↗ and select your account.
- Select Images > Variants.
- Find the variant you want to remove and select Delete.
Make a DELETE
request to the delete variant endpoint.
curl --request DELETE https://api.cloudflare.com/client/v4/account/{account_id}/images/v1/variants/{variant_name} \--header "Authorization: Bearer <API_TOKEN>"
After the variant has been deleted, the response returns "success": true.
Was this helpful?
- Resources
- API
- New to Cloudflare?
- Products
- Sponsorships
- Open Source
- Support
- Help Center
- System Status
- Compliance
- GDPR
- Company
- cloudflare.com
- Our team
- Careers
- 2025 Cloudflare, Inc.
- Privacy Policy
- Terms of Use
- Report Security Issues
- Trademark