Sitemaps: delete
Wymaga autoryzacji
Usuwa mapę witryny.
Wypróbuj
Żądanie
Żądanie HTTP
DELETE https://www.googleapis.com/webmasters/v3/sites/siteUrl/sitemaps/feedpath
Parametry
Nazwa parametru |
Wartość |
Opis |
Parametry ścieżki |
feedpath |
string |
Adres URL rzeczywistej mapy witryny. Na przykład: http://www.example.com/sitemap.xml
|
siteUrl |
string |
Adres URL usługi określony w Search Console. Na przykład:
http://www.example.com/
(usługa z prefiksem URL),
lub sc-domain:example.com
(usługę Domena).
|
Autoryzacja
To żądanie wymaga autoryzacji w ramach tego zakresu (więcej informacji o uwierzytelnianiu i autoryzacji).
Zakres |
https://www.googleapis.com/auth/webmasters |
Treść żądania
Nie podawaj treści żądania przy użyciu tej metody.
Odpowiedź
Jeśli operacja się uda, ta metoda zwróci pustą treść odpowiedzi.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-08-23 UTC.
[null,null,["Ostatnia aktualizacja: 2024-08-23 UTC."],[[["Deletes a specified sitemap from a Google Search Console property using a `DELETE` request to the provided endpoint."],["Requires authorization with the `https://www.googleapis.com/auth/webmasters` scope to execute."],["The request needs `siteUrl` (property URL) and `feedpath` (sitemap URL) as path parameters."],["The method returns an empty response body upon successful deletion of the sitemap."]]],["This API method deletes a specified sitemap from a site in Search Console. It requires authorization via the `https://www.googleapis.com/auth/webmasters` scope. The `DELETE` request is sent to `https://www.googleapis.com/webmasters/v3/sites/siteUrl/sitemaps/feedpath`. The `feedpath` parameter defines the sitemap URL, and `siteUrl` specifies the site's URL as listed in Search Console. No request body is needed, and a successful deletion results in an empty response.\n"]]