Comment on page
deleteFile( )
const { data } = await client.user.deleteFile({
id: 'file.1234',
});
console.log('File name: ', data?.name)
{
data?: {
id: string;
blobID: string;
clientID: string;
organizationID?: string;
wallet: string;
name: string;
description?: string;
rolesRequired: string[];
createdAt: string;
updatedAt: string;
};
error: ErrorMessage | null;
headers: Object;
statusCode: number;
}
String that represents the file ID.
const { data } = await client.user.deleteFile({
id: 'file.1234',
});
console.log('File name: ', data?.name)
String that represents an organizations ID.
const { data } = await client.user.deleteFile({
id: 'file.1234',
organizationID: 'org.abc',
});
console.log('File name: ', data?.name)
Last modified 10mo ago