Google Search Console icon

Google Search Console

Connect to Google Search Console API

Overview

This node integrates with the Google Search Console API to manage sitemaps for verified websites. Specifically, the Delete Sitemap operation allows users to remove a sitemap URL from a verified site in their Google Search Console account.

Typical use cases include:

  • Automating the removal of outdated or incorrect sitemap URLs from your Google Search Console properties.
  • Managing multiple sites and their sitemaps programmatically as part of SEO workflows.
  • Cleaning up sitemap submissions after site restructuring or content removal.

For example, if you have a sitemap URL that is no longer valid or relevant, you can use this node operation to delete it from your Google Search Console property without manually logging into the console.

Properties

Name Meaning
Site URL Mode Choose how to specify the site URL: either pick from your verified sites or enter manually.
Site URL The verified site URL selected from your list of verified sites (shown if "Pick from My Verified Sites" is chosen).
Site URL (Manual) Manually enter the verified site URL (e.g., https://example.com/ or sc-domain:example.com) (shown if "Enter Manually" is chosen).
Sitemap URL The full URL of the sitemap file to delete (e.g., https://example.com/sitemap.xml). This is required.

Output

The output JSON object includes the following fields:

  • resource: Always "site" indicating the resource type.
  • operation: Always "deleteSitemap" indicating the performed operation.
  • siteUrl: The site URL from which the sitemap was deleted.
  • sitemapUrl: The sitemap URL that was deleted.
  • success: A boolean flag (true) indicating the deletion succeeded.
  • message: A confirmation string, e.g., "Sitemap deleted successfully".

No binary data is output by this operation.

Example output JSON:

{
  "resource": "site",
  "operation": "deleteSitemap",
  "siteUrl": "https://example.com/",
  "sitemapUrl": "https://example.com/sitemap.xml",
  "success": true,
  "message": "Sitemap deleted successfully"
}

Dependencies

  • Requires a configured Google Search Console API credential with appropriate permissions to manage sitemaps.
  • Supports authentication via OAuth2 or Service Account credentials.
  • The node makes HTTP DELETE requests to the Google Search Console API endpoint for sitemaps.

Troubleshooting

  • No site selected error: If the site URL is not provided or invalid, the node throws an error "No site selected.". Ensure you select or enter a verified site URL.
  • Sitemap URL required error: If the sitemap URL is missing, the node throws "Sitemap URL is required.". Provide a valid sitemap URL to delete.
  • Authentication failed: Errors related to authentication indicate misconfigured or missing credentials. Verify your API key or service account setup.
  • API errors: Any other API-related errors will be surfaced. Check the sitemap URL correctness and your Google Search Console permissions.

Links and References

Discussion