Skip to content
lumalabs.ai

Delete a file

client.files.delete(stringfileID, RequestOptionsoptions?): void
DELETE/files/{file_id}

Soft-delete a file. It can no longer be referenced from new generations. Returns 204 with no body.

ParametersExpand Collapse
fileID: string
formatuuid

Delete a file

import Luma from 'luma-agents';

const client = new Luma({
  authToken: process.env['LUMA_AGENTS_API_KEY'], // This is the default and can be omitted
});

await client.files.delete('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e');
Returns Examples