Delete

To delete an existing file you need to execute a DELETE request against the /libraries/:libraryId/files/:fileId endpoint.

The fileId uniquely identifies the file and the libraryId uniquely identifies the library inside which the file is located.

This is a destructive operation which cannot be undone! If the deleted file is in-use and opened in a room, then it will be closed. The file will be permanently deleted.

Request

curl --request DELETE \
  --url https://api.digitalsamba.com/api/v1/libraries/45d125d8-bac9-43a5-a6a8-311a5433239d/files/0b20a544-d2d7-4c1b-b651-dc132a76a756" \
  --user YOUR_TEAM_ID:YOUR_DEVELOPER_KEY

Response (204 -> No Content)

Response is empty because the file was deleted and there is no content to return.

Last updated