Sitemaps: delete
Cần phải uỷ quyền
Xoá một sơ đồ trang web khỏi trang web này.
Thử ngay.
Yêu cầu
Yêu cầu HTTP
DELETE https://www.googleapis.com/webmasters/v3/sites/siteUrl/sitemaps/feedpath
Tham số
Tên thông số |
Giá trị |
Mô tả |
Tham số đường dẫn |
feedpath |
string |
URL của sơ đồ trang web thực tế. Ví dụ: http://www.example.com/sitemap.xml
|
siteUrl |
string |
URL của tài sản như được xác định trong Search Console. Ví dụ:
http://www.example.com/
(tài sản tiền tố URL),
hoặc sc-domain:example.com
(Tài sản miền).
|
Ủy quyền
Yêu cầu này cần có sự cho phép có phạm vi sau (đọc thêm về quy trình xác thực và uỷ quyền).
Phạm vi |
https://www.googleapis.com/auth/webmasters |
Nội dung yêu cầu
Đừng cung cấp nội dung yêu cầu bằng phương thức này.
Phản hồi
Nếu thành công, phương thức này sẽ trả về một nội dung phản hồi trống.
Hãy dùng thử!
Hãy sử dụng APIs Explorer (Trình khám phá API) bên dưới để gọi phương thức này trên dữ liệu trực tiếp và xem phản hồi.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2024-08-23 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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"]]