WordPress Options API delete_option


Example

delete_option function is used to delete an option from the options table.

This will delete my_custom_option from the options table.

<?php delete_option( 'my_custom_option' ); ?>