Overview
This node integrates with the Google Search Console API to manage SEO-related data for websites. It supports multiple operations including listing verified sites, managing sitemaps, and inspecting URLs for indexing status. The "Delete Sitemap" operation specifically allows users to remove a sitemap from their Google Search Console account, which is useful when a sitemap is outdated, incorrect, or no longer relevant.
Practical scenarios include:
- Removing obsolete or erroneous sitemap files to keep the Search Console data clean.
- Automating sitemap management workflows as part of website maintenance.
- Integrating sitemap deletion into broader SEO automation pipelines.
Properties
| Name | Meaning |
|---|---|
| Site URL | The verified URL of the site in Google Search Console where the sitemap is registered. |
| Sitemap URL | The full URL of the sitemap file to be deleted from the specified site in Search Console. |
Output
The output JSON for the "Delete Sitemap" operation contains:
success: A boolean indicating if the deletion was successful (true).message: A confirmation string, e.g., "Sitemap deleted successfully".siteUrl: The site URL provided in the input.sitemapUrl: The sitemap URL that was deleted.
This confirms the action taken by the node. There is no binary data output.
Example output JSON:
{
"success": true,
"message": "Sitemap deleted successfully",
"siteUrl": "https://example.com/",
"sitemapUrl": "https://example.com/sitemap.xml"
}
Dependencies
- Requires an API key credential with access to Google Search Console API.
- The node uses Google’s official
googleapislibrary for API communication. - The credential must provide a client email and private key for authentication.
- Scopes required: read/write access to Search Console data.
- Proper verification of the site URL in Google Search Console is mandatory.
Troubleshooting
Common issues:
- Invalid or unverified site URL: The site URL must be verified in Google Search Console; otherwise, the API will reject requests.
- Incorrect sitemap URL format: Ensure the sitemap URL is correct and accessible.
- Authentication errors: Check that the API credentials are valid and have the necessary permissions.
- Network or quota limits: Google APIs enforce quotas; exceeding them may cause failures.
Error messages:
"The operation \"deleteSitemap\" is not supported!": This indicates an unsupported operation was requested; verify the operation parameter.- API errors related to authorization or invalid parameters will be returned from Google and surfaced by the node. Review the error message for details.
Resolution tips:
- Verify site ownership in Google Search Console.
- Double-check sitemap URLs.
- Confirm API credentials and scopes.
- Enable "Continue on Fail" option to handle partial failures gracefully.