Sitemaps: delete
ต้องมีการให้สิทธิ์
ลบ Sitemap ออกจากเว็บไซต์
ลองใช้เลย
ส่งคำขอ
คำขอ HTTP
DELETE https://www.googleapis.com/webmasters/v3/sites/siteUrl/sitemaps/feedpath
พารามิเตอร์
ชื่อพารามิเตอร์ |
ค่า |
คำอธิบาย |
พารามิเตอร์เส้นทาง |
feedpath |
string |
URL ของ Sitemap จริง เช่น http://www.example.com/sitemap.xml
|
siteUrl |
string |
URL ของพร็อพเพอร์ตี้ตามที่ระบุไว้ใน Search Console ดังตัวอย่างต่อไปนี้
http://www.example.com/
(พร็อพเพอร์ตี้ คำนำหน้า URL)
หรือ sc-domain:example.com
(พร็อพเพอร์ตี้ โดเมน)
|
การให้สิทธิ์
คำขอนี้ต้องได้รับการให้สิทธิ์ตามขอบเขตต่อไปนี้ (อ่านเพิ่มเติมเกี่ยวกับการตรวจสอบสิทธิ์และการให้สิทธิ์)
ขอบเขต |
https://www.googleapis.com/auth/webmasters |
เนื้อหาของคำขอ
โปรดอย่าให้เนื้อหาคำขอตามวิธีการนี้
คำตอบ
หากสำเร็จ เมธอดนี้จะแสดงเนื้อหาการตอบกลับที่ว่างเปล่า
ลองใช้งาน
ใช้ API Explorer ด้านล่างเพื่อเรียกใช้เมธอดนี้กับข้อมูลแบบสดและดูการตอบกลับ
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-08-23 UTC
[null,null,["อัปเดตล่าสุด 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"]]