Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove pages not in sitemap #67

Open
BillTheGoat opened this issue Jul 4, 2024 · 1 comment
Open

Remove pages not in sitemap #67

BillTheGoat opened this issue Jul 4, 2024 · 1 comment

Comments

@BillTheGoat
Copy link

Is there a flag to have the script tell google to remove the pages that are indexed but not in our sitemaps? We have pages that are created and others that are pulled daily, and I would like to avoid google hitting too many 404s.

@BillTheGoat
Copy link
Author

Searching the code I find no URL_DELETED, which means it is not in the project. The API requires:

Send the following HTTP POST request to https://indexing.googleapis.com/v3/urlNotifications:publish endpoint
{
  "url": "https://careers.google.com/jobs/google/technical-writer",
  "type": "URL_DELETED"
}

So this is a feature request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant