Skip to content

Delete file

Endpoint

DELETE /organizations/{org_id}/file/{asset_id}

This endpoint permanently deletes an uploaded file (asset) in Tallyfy. It removes both the asset record and the underlying file from storage.

Request

Replace {org_id} with your Organization ID and {asset_id} with the Asset ID of the file you want to delete.

Headers

HeaderValueRequired
AuthorizationBearer {your_access_token}Yes
Acceptapplication/jsonYes
X-Tallyfy-ClientAPIClientYes

Body

No request body is needed.

Code samples

const accessToken = 'YOUR_PERSONAL_ACCESS_TOKEN';
const orgId = 'YOUR_ORGANIZATION_ID';
const assetId = 'ASSET_ID_TO_DELETE';
const apiUrl = `https://go.tallyfy.com/api/organizations/${orgId}/file/${assetId}`;
const headers = new Headers();
headers.append('Authorization', `Bearer ${accessToken}`);
headers.append('Accept', 'application/json');
headers.append('X-Tallyfy-Client', 'APIClient');
fetch(apiUrl, {
method: 'DELETE',
headers: headers
})
.then(response => {
if (response.ok) {
console.log(`Deleted file ${assetId}. Status: ${response.status}`);
} else {
return response.json().then(errData => {
console.error(`Error deleting file ${assetId}:`, errData);
});
}
})
.catch(error => {
console.error(`Request failed for ${assetId}:`, error.message);
});

Response

A successful request returns a 200 OK status code with an empty response body, confirming the file has been deleted from both the Tallyfy record and storage.

Files > Download file

Download or view files inline from Tallyfy using GET requests with your organization and file IDs. The response returns raw binary content with appropriate headers.

Tasks > Delete task

A DELETE endpoint permanently removes standalone tasks while preserving process-related tasks that can only be deleted through their parent process run deletion.

Groups > Delete group

Delete a group from your organization using a DELETE request, which permanently removes the group association while keeping individual member and guest accounts.

Files > Get file metadata

Retrieve metadata for a specific uploaded file asset in Tallyfy by making a GET request with your organization and asset IDs.