Remove an existing or custom preset

You can remove presets one at a time, or as a batch, or you can remove thee entire Customize > Presets tab. Add the code to your child theme's functions.php file.

Remove a single preset

Remove a preset with the following method:

FLCustomizer::remove_preset( $slug );

As with adding a preset, removing a preset must also be done within the  after_setup_theme action:

function my_custom_presets() {     
FLCustomizer::remove_preset( 'default-dark' ); 
}  
add_action( 'after_setup_theme', 'my_custom_presets', 11 );

Remove multiple presets

In Beaver Builder Theme Version 1.6, the remove_preset function accepts arrays. Here's an example of code that will remove all of the built-in presets. You can modify the list of presets in the array to remove only a subset of them.

function remove_all_presets() {
    FLCustomizer::remove_preset( 
      array('default-dark' , 'classic' , 'modern' , 'bold' , 
          'stripe' , 'deluxe' , 'premier' , 'dusk' , 'midnight')
     );
}
add_action( 'after_setup_theme', 'remove_all_presets', 11 );

In Beaver Builder Theme Version 1.5 and earlier, the remove_preset function can take only single values, so the code needs to set up an array and then uses the remove_preset function inside a loop to process each single value from the array, as in the following code example.

function remove_all_presets() {
  $exclude_presets = array('default-dark' , 'classic' , 'modern' , 'bold' , 'stripe' , 'deluxe' , 'premier' , 'dusk' , 'midnight');
  foreach ( $exclude_presets as $preset ) {
    FLCustomizer::remove_preset( $preset );
  }
}
add_action( 'after_setup_theme', 'remove_all_presets', 11 );

Remove the entire Preset tab

function my_customize_register() {
    global $wp_customize;
    $wp_customize->remove_section( 'fl-presets' );
}
add_action( 'customize_register', 'my_customize_register', 11 );