Function Reference/delete option
(Add your language)
A safe way of removing a named option/value pair from the options database table.
<?php delete_option( $option ); ?>
- (string) (required) Name of the option to be deleted. A list of valid default options can be found at the Option Reference.
- Default: None
- True, if option is successfully deleted. False on failure.
Delete a single option
<?php delete_option( 'my_option' ); ?>
delete_option() is located in