I wanted to remove the comments feed and posts comments feed. As of Wordpress 5.4.2, this worked for me.
Add this into your "after_setup_theme" action.
add_theme_support('automatic-feed-links');
Add this right after that line:
add_filter( 'feed_links_show_comments_feed', '__return_false' );
After your "after_setup_theme action, add this function and filter ( I pulled this function from https://jeffvautin.com/2016/03/removing-comments-rss-feeds-from-wordpress/ blog.) It will removed the posts comments feed.
/**
* Remove the posts comments rss feed
*/
function disablePostCommentsFeedLink($for_comments) {
return;
}
add_filter('post_comments_feed_link','disablePostCommentsFeedLink');
I also add this to remove those non-essential feeds
/**
* remove non-essential rss feeds
*
* This removes feeds like tags, authors, search, post type
*/
remove_action( 'wp_head', 'feed_links_extra', 3 );
I believe this will just give me the main feed. I'm not sure if this is the best way of going about this, but seems to do the trick.