How can I disable meta tags provided by the Metatag module for a custom route?
Edit – @AlfredArmstrong pointed me to the hooks provided by the Metatag module itself. And there's hook_metatags_alter() you can implement to completely disable all meta tags added by the Metatag module. Much shorter than my original answer.

/**
 * Implements hook_metatags_alter().
 */
function MYMODULE_metatags_alter(array &amp;$metatags, array &amp;$context) {

  // Exclude meta tags on 'player' route.
  if (\Drupal::routeMatch()-&gt;getRouteName() === 'player') {
    $metatags = NULL;
  }
}




Original answer – I've had similar problems before. You can override or unset meta tags added by the Metatag module implementing hook_page_attachments_alter() like in the following example.

/**
 * Implements hook_page_attachments_alter().
 */
function MYMODULE_page_attachments_alter(array &amp;$attachments) {

  // Check for the route you want to override.
  if (\Drupal::routeMatch()-&gt;getRouteName() === 'player') {

    // An array of tags you want to unset.
    $unset = [
      'description' =&gt; 1,
      'abstract' =&gt; 1,
      'keywords' =&gt; 1,
    ];

    $meta_tags = $attachments['#attached']['html_head'];
    foreach ($meta_tags as $key =&gt; $meta_tag) {

      // And now unset them.
      if (isset($unset[$meta_tag[1]])) {

        unset($attachments['#attached']['html_head'][$key]);
      }
    }
  }
}