דפים: מחיקה
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
נדרשת הרשאה
מחיקה של דף לפי מזהה.
רוצים לנסות?
בקשה
בקשת HTTP
DELETE https://www.googleapis.com/blogger/v3/blogs/blogId/pages/pageId
פרמטרים
שם הפרמטר |
ערך |
תיאור |
פרמטרים נדרשים |
blogId |
string |
המזהה של הבלוג.
|
pageId |
string |
המזהה של הדף.
|
useTrash |
boolean |
אם אפשר, מעבירים את הפריטים לאשפה. חשוב לזכור שאפשר להעביר לאשפה רק דפים פעילים.
|
אישור
הבקשה הזו דורשת הרשאה עם לפחות אחד מההיקפים הבאים (מידע נוסף על אימות והרשאה).
היקף |
https://www.googleapis.com/auth/blogger |
גוף הבקשה
אין לספק גוף בקשה בשיטה הזו.
תשובה
אם הפעולה בוצעה ללא שגיאות, ה-method מחזיר גוף תגובה ריק.
נסה בעצמך!
אפשר להשתמש ב-API Explorer שבהמשך כדי להפעיל את השיטה הזו על נתונים פעילים ולראות את התגובה.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-11-23 (שעון UTC).
[null,null,["עדכון אחרון: 2024-11-23 (שעון UTC)."],[[["\u003cp\u003eDelete a specific page from a blog using its unique ID.\u003c/p\u003e\n"],["\u003cp\u003eRequires authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/blogger\u003c/code\u003e scope.\u003c/p\u003e\n"],["\u003cp\u003eOptionally move the page to the trash instead of permanently deleting it using the \u003ccode\u003euseTrash\u003c/code\u003e parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe request does not require a body and returns an empty response upon success.\u003c/p\u003e\n"]]],[],null,["# Pages: delete\n\n**Requires [authorization](#auth)**\n\nDelete a page by ID.\n[Try it now](#try-it).\n\nRequest\n-------\n\n### HTTP request\n\n```\nDELETE https://www.googleapis.com/blogger/v3/blogs/blogId/pages/pageId\n```\n\n### Parameters\n\n| Parameter name | Value | Description |\n|----------------|-----------|-----------------------------------------------------------------------------|\n| **Required parameters** |||\n| `blogId` | `string` | The Id of the Blog. |\n| `pageId` | `string` | The ID of the Page. |\n| `useTrash` | `boolean` | Move to Trash if possible. Note that only live pages can be moved to Trash. |\n\n### Authorization\n\nThis request requires authorization with at least one of the following scopes ([read more about authentication and authorization](/blogger/docs/3.0/using#auth)).\n\n| Scope |\n|-------------------------------------------|\n| `https://www.googleapis.com/auth/blogger` |\n\n### Request body\n\nDo not supply a request body with this method.\n\nResponse\n--------\n\nIf successful, this method returns an empty response body.\n\nTry it!\n-------\n\n\nUse the APIs Explorer below to call this method on live data and see the response."]]