Skip to main content

Delete File

Delete a configuration file permanently. This action cannot be undone.

Endpoint

DELETE /{envId}/file/{id}

Authentication

Required: Yes (Session or Bearer Token with 2FA)

Path Parameters

ParameterTypeRequiredDescription
envIdstring (UUID)YesEnvironment ID containing the file
idstring (UUID)YesFile ID to delete

Response

Success Response (200 OK)

{
"message": "File deleted successfully",
"id": "file-550e8400-e29b-41d4-a716-446655440000"
}

Error Responses

Status CodeDescription
400Bad Request - File is in use by applications or invalid UUID
401Unauthorized - Invalid or missing authentication
403Forbidden - User doesn't have access to this file
404Not Found - File or environment doesn't exist
500Internal Server Error

Examples

curl -X DELETE "https://api.thevenin.cloud/api/v1/{envId}/file/{fileId}" \
-H "Authorization: Bearer tvn_your_api_token_here"