Skip to main content
DELETE
Delete a file

Overview

Delete a file from storage. This permanently removes the file—it cannot be recovered.
File deletion is permanent. Ensure you have backups if the file may be needed later.

Common Use Cases

  • Cleanup: Remove outdated or superseded documents
  • Corrections: Delete incorrectly uploaded files
  • Compliance: Remove files per data retention policies
  • Storage Management: Free up storage space

What Gets Deleted

  • File content is permanently removed from storage
  • File metadata is removed from the database
  • References in orders/subscriptions are cleared

Example: Delete Obsolete Document

Example: Cleanup Old Files

Error Handling

Authorizations

Authorization
string
header
required

API key obtained from FlexPortal dashboard

Headers

Tenant-ID
string
required

Your tenant identifier

Path Parameters

fileId
string
required

The file ID

Body

application/json
deleteFromStorage
boolean

Also delete from storage (default: true)

Response

File deleted

success
enum<boolean>
required
Available options:
true
message
string
required
fileId
string
required