redirect delete
Destructive
This command deletes redirect rules. Use --dry-run to preview.
Usage
seo-ops redirect delete <id|pattern> [--path=<path>] [--dry-run] [--yes]
Delete a redirect rule by numeric ID or URL pattern. Requires interactive confirmation unless --yes is passed.
Examples
# Delete by ID with confirmation
seo-ops redirect delete 5 --path=/var/www/html
# Type "yes" to confirm: yes
# Delete by URL pattern with auto-confirm
seo-ops redirect delete /old-page --path=/var/www/html --yes
# Preview deletions
seo-ops redirect delete /old-page --path=/var/www/html --dry-run
Exit Codes
| Code | Meaning |
|---|---|
| 0 | Success |
| 2 | Missing argument |
| 4 | WordPress path not configured |