Skip to main content

meta delete

Destructive

This command deletes SEO metadata from your WordPress database. Use --dry-run to preview first.

Usage

seo-ops meta delete <post-id> <field> [--path=<path>] [--dry-run] [--yes]

Delete an SEO meta field from a post. Requires interactive confirmation unless --yes is passed.

Examples

# Delete with confirmation prompt
seo-ops meta delete 123 title --path=/var/www/html
# Delete 1 SEO field(s) for 1 post(s)?
# Type "yes" to confirm: yes

# Skip confirmation
seo-ops meta delete 123 title --path=/var/www/html --yes

# Dry-run mode (no confirmation needed)
seo-ops meta delete 123 title --path=/var/www/html --dry-run

# Delete all SEO fields
seo-ops meta delete 123 all --path=/var/www/html --dry-run

# Comma-separated post IDs
seo-ops meta delete 123,456 title --path=/var/www/html --dry-run

Supported Field Names

All standard fields plus all (deletes all SEO fields for the post).

Exit Codes

CodeMeaning
0Success
1Invalid path or unknown field
2Missing argument
4WordPress path not configured