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, or option does not exist.
Delete a single option
This will delete 'my_option' from the options table within your MySQL database.
<?php delete_option( 'my_option' ); ?>
delete_option() is located in