/files/delete/{fileId}
DELETE
fileId
(required): The ID of the file to be deleted. Example: k3pp2maludvi0mhw8oz0d05i
{
"trash": "soft" // or "hard"
}
trash
(optional, string, default: "soft"
): Specifies the type of deletion."soft"
: Moves the folder to the trash (soft delete)."hard"
: Permanently deletes the folder (hard delete).DELETE /files/delete/k3pp2maludvi0mhw8oz0d05i
Content-Type: application/json
{
"trash": "soft"
}
k3pp2maludvi0mhw8oz0d05i
to the trash.200 OK
: File successfully deleted.204 No Content
: File successfully deleted (often used when no response body is needed).400 Bad Request
: Invalid request parameters.404 Not Found
: File not found.500 Internal Server Error
: Server error.