Delete a transcription by file ID
Audio Transcription
Delete Transcription
Permanently removes the transcription record for the specified audio file from the system.
DELETE
Delete a transcription by file ID
Permanently removes the transcription record for the specified audio file from the system. This action cannot be undone.
Request
Headers
| Name | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Yes | Bearer token |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| fileId | string | Yes | Unique identifier of the transcription or audio file to delete |
Parameter Details
- fileId: Must be a valid transcription or file identifier
- Used to locate and delete the transcription record
- This action is permanent and cannot be undone
Response
200 OK - Transcription successfully deleted
404 Not Found
500 Internal Server Error
Example
Use Cases
- Data Cleanup: Remove old or unnecessary transcriptions
- Storage Management: Free up storage space by deleting transcriptions
- Privacy Compliance: Remove transcriptions containing sensitive information
- Error Correction: Delete incorrect transcriptions for reprocessing
- User Management: Remove transcriptions when users are deleted
Implementation Examples
React Delete Transcription Component
Batch Delete Transcriptions
Transcription Cleanup Service
Best Practices
- Confirmation: Always confirm before deleting transcriptions
- Backup: Consider backing up important transcriptions before deletion
- Batch Operations: Use batch deletes for multiple items
- Error Handling: Handle partial failures in batch operations
- Audit Logging: Log deletion events for compliance
Security Considerations
- Authorization: Ensure users can only delete their own transcriptions
- Permissions: Require appropriate permissions for deletion
- Audit Trail: Maintain audit logs of deletion activities
- Data Recovery: Consider recovery options for accidental deletions
Performance Considerations
- Batch Size: Limit batch delete operations to avoid timeouts
- Storage Cleanup: Ensure storage is properly cleaned up after deletion
- Database Performance: Large-scale deletions may impact database performance
Related Endpoints
- Use
/transcription/get-transcription/{fileId}to retrieve transcriptions - Use transcription list endpoints to find transcriptions to delete
- Use user management endpoints for user-specific cleanup
Notes
- Deletion is permanent and cannot be undone
- Only the transcription text is deleted; original audio files may remain
- System may automatically clean up very old transcriptions
- Consider implementing soft deletes for recovery options
- Storage space is freed up immediately after deletion
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Unique identifier of the transcription or audio file to delete.
Example:
"670fcae25abf2d8e5c8a4a12"