Excluir
AI-generatedSummary
Delete a short link identified by its slug from the Cloudflare Workers KV namespace used for URL shortening.
Inputs
- Slug (required) — The unique short path (slug) representing the link to delete from the KV store, e.g., 'campanha-natal'.
- Provisionar infra automaticamente — If enabled (default true), ensures the KV namespace exists, publishes the redirect Worker, and registers the hostname automatically before deleting. Disable if the worker and DNS are managed manually.
Output shape
A single JSON object confirming deletion status of the specified slug, including Cloudflare API response details.
Outputs one result per input item processed. Throws an error if the slug does not exist or if the deletion fails. Operation depends on credentials with appropriate Cloudflare permissions.
Examples
Example 1: Delete a short link with auto-provisioning enabled
Provide the slug of the short link to delete. Ensure credentials include the Cloudflare API token and account ID. Keep 'Provisionar infra automaticamente' enabled to auto-manage the Worker and KV namespace.
Example 2: Delete a short link with auto-provisioning disabled
Provide the slug to delete and disable auto-provisioning if you have already set up the Worker and DNS manually. The operation will then delete the slug entry directly from the existing KV namespace.