Deleting a document
This article shows you how to delete a document from a record in MobilityManager and explains exactly what deletion removes.
Before you start
Deleting requires the documents:manage permission, typically held by FleetManager and SystemAdmin. As with all document operations, you also need an active company (tenant) in your session.
Delete a document
- Open the record the file is attached to — for example a vehicle, a Beleg (receipt/expense document), a damage case, or a Strafmandat (penalty notice).
- Open the record's documents area and locate the file in the list.
- Choose to delete it and confirm.
Deletion is scoped to the exact record and document. The platform matches the document ID against that record's association type and ID, so you can only delete a file through the record it actually belongs to.
What deletion removes
Deleting a document removes the document record and all of its versions from your company's database in one operation. Once deleted, the file no longer appears in the record's document list and can no longer be downloaded through the platform.
| Removed | Result |
|---|---|
| The document record | Gone from the record's document list. |
| Every version of the file | All version history is removed, not just the latest. |
Warning: Deletion is permanent and covers every version. There is no undo and no recycle bin in the DocumentModule. If you only want to stop new uploads of a category rather than remove a specific file, deactivate the category instead.
What you might see
| Situation | Result |
|---|---|
| The document does not exist for that record | "Document not found." (HTTP 404) |
| The record type is not supported | "Document operation unavailable" |
| No active company context | "Tenant context is required for document operations." |
| Successful deletion | The request returns no content; the list refreshes without the file. |
Deleting versus replacing
If your goal is to correct a file rather than remove it, do not delete — upload a corrected copy instead. A new upload adds a new version and becomes the one that downloads return, while the earlier version stays in history. Delete only when the document should not exist at all.
Note: Because documents are evidence for damage cases, penalty notices, and expense claims, confirm the file is genuinely unwanted before deleting. Once the versions are removed, the content cannot be recovered from the platform.
Related
- Uploading a document and file size limits
- Downloading a document
- Document retention and permanent deletion
- Managing document categories