If we look at the file
/wp-includes/default-filters.php
we can find these two lines in there
add_action( 'wp_head', 'feed_links', 2 ); add_action( 'wp_head', 'feed_links_extra', 3 );
so if we want to remove these actions, we can do it with these two lines in functions.php:
remove_action('wp_head','feed_links',2); remove_action('wp_head','feed_links_extra',3);
So the feed links will be removed from the <head> tag.
ps: In this file you will also find:
add_action( 'do_feed_rdf', 'do_feed_rdf', 10, 1 ); add_action( 'do_feed_rss', 'do_feed_rss', 10, 1 ); add_action( 'do_feed_rss2', 'do_feed_rss2', 10, 1 ); add_action( 'do_feed_atom', 'do_feed_atom', 10, 1 );
If you want to disable the feeds, you can remove these hooks in a similar way with:
remove_action( 'do_feed_rdf', 'do_feed_rdf', 10, 1 ); remove_action( 'do_feed_rss', 'do_feed_rss', 10, 1 ); remove_action( 'do_feed_rss2', 'do_feed_rss2', 10, 1 ); remove_action( 'do_feed_atom', 'do_feed_atom', 10, 1 );
but then you will get this message when you visit the feed links

You might consider making url rewrites for the feed links or make a custom feed template, to get rid of this message.