Step 1. Backup before making any changes.
Step 2. If not already done so, create a robots.txt file.
Step 3. Paste the following into the file:
User-agent: * Disallow: /wp*
Step 4. Save the file.
You're Done. Now search engines shouldn't index the wp-admin, wp-content and wp-includes folders and sub files and folders.