Skip to main content

Delete Attachment

DELETE 

/api/upload/:tenant_id/attachment/:filename

Delete an uploaded attachment from storage.

URL structure: /api/upload/{tenant_id}/attachment/{filename}

Args: tenant_id: Tenant ID for folder isolation filename: The attachment filename to delete web_context: Authenticated user context upload_service: Upload service instance with tenant context

Returns: Success message

Raises: 403: Forbidden - Cannot delete files from another tenant 404: Attachment not found 500: Internal server error

Request

Responses

Successful Response