Untuk agen AI: markdown halaman ini — /docs-content-en/entities/sites/folders/trash.md indeks dokumentasi — /llms.txt

Artikel dokumentasi saat ini tersedia dalam bahasa Inggris.

Trash folder

POST /v1/sites/:id/folders/:folderId/trash

Trashing unpublishes pages in the folder and descendants. This is not physical deletion.

Parameters

Parameter Type Description
id integer Positive safe integer site ID
scope string Optional KNOWLEDGE / GROUP / MAINPAGE
folderId integer Positive safe integer folder ID belonging to the site

Requires landing key scope. Pass scope for knowledge bases, groups and MAINPAGE. State fields are read-only. Dates are ISO 8601 wall clocks without an offset: Bitrix24 does not return the timezone. Empty body; mark is not accepted.

curl

Terminal
curl -X POST "https://vibecode.bitrix24.com/v1/sites/42/folders/7/trash" -H "X-Api-Key: YOUR_API_KEY"

JavaScript

javascript
const response = await fetch("https://vibecode.bitrix24.com/v1/sites/42/folders/7/trash", {
  method: "POST",
  headers: { "X-Api-Key": "YOUR_API_KEY" },
});
const result = await response.json();

Response

JSON
{
  "success": true,
  "data": {
    "id": 7,
    "parentId": null,
    "siteId": 42,
    "indexPageId": null,
    "active": false,
    "deleted": false,
    "title": "Catalog",
    "code": "catalog",
    "createdById": 42,
    "modifiedById": 42,
    "dateCreate": "2026-10-05T14:41:37",
    "dateModify": "2026-10-05T14:41:37"
  }
}

Errors

400 INVALID_PARAMS / INVALID_SCOPE / MISSING_REQUIRED_FIELDS / READONLY_FIELD; 401 TOKEN_MISSING; 403 SCOPE_DENIED / BITRIX_ACCESS_DENIED / WRITE_BLOCKED_READONLY_KEY; 404 ENTITY_NOT_FOUND; 409 LANDING_MODULE_NOT_ENABLED; 422 BITRIX_ERROR; 429; 502 / 503.

Bitrix24: landing.site.markFolderDelete.

Site folders