Delete a file

Permanently delete a file from the session. Both uploaded files and sandbox-generated output files can be deleted through this endpoint.

Path parameters

file_idstringRequired

Query parameters

scope_idstringRequired

Session / container identifier.

namespacestringOptionalDefaults to session
Namespace the file belongs to. Defaults to 'session'.

Response

Successful Response
idstring
Relative path of the file that was deleted.
type"file_deleted"OptionalDefaults to file_deleted

Object type discriminator, always ‘file_deleted’.

Errors

401
Unauthorized Error
404
Not Found Error
422
Unprocessable Entity Error
503
Service Unavailable Error