wp_delete_option
Delete a WordPress option row entirely, causing reads to fall back to defaults. Use dry_run to preview before permanent deletion; requires admin and allow_prod for production.
Instructions
Delete a wp_options row entirely (not "set it to empty").
Whatever reads that option falls back to its default - which for a plugin's settings
row means every setting it holds is gone at once, and for a core option can change
how the site behaves. Read it with wp_get_option and keep the value first: nothing
here can restore it. Deleting an option that was never set is reported as
action: "noop" (nothing to delete), not an error. DEFAULTS TO dry_run=true
(returns a preview with the current value; deletes nothing). Pass dry_run=false to
delete. Requires the REST transport, wp-ops-connect 1.3.0+ and an administrator app
password. Prod writes require allow_prod=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| dry_run | No | ||
| install | Yes | ||
| allow_prod | No |