Path Parameters
Response
Successful Response
The response is of type any.
import Spitch from 'spitch';
const client = new Spitch();
const file = await client.files.delete('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e');
console.log(file);"<any>"Delete a file and its associated S3 object.
Args: file_id: UUID of the file to delete identity: Authentication identity containing org_id db: Database session s3: S3 session for deleting objects
Returns: dict: Success confirmation
Raises: HTTPException: 404 if file not found or doesn’t belong to org
import Spitch from 'spitch';
const client = new Spitch();
const file = await client.files.delete('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e');
console.log(file);"<any>"Successful Response
The response is of type any.
Was this page helpful?