Delete Attach

Deletes an attached file. The file can be deleted by the user who uploaded it or a user with
permission to manage page access. Read access to the page is also required.

For common headers and authentication methods, see Access to the API. For sample scenarios, see API usage examples.

Request

DELETE

https://api.wiki.yandex.net/v1/pages/{idx}/attachments/{file_id}

Path parameters

Name

Description

file_id

Type: integer

ID of the attached file on the specified page. Pass the id field of an element in results from the response to GET /v1/pages/{idx}/attachments.

idx

Type: integer

Page ID. The value of idx is the same as the id field value in the response to GET /v1/pages?slug=… or POST /v1/pages.

Responses

204 No Content

No Content

Body

application/json
{}

Name

Description