Deletes a file from a specified drive in SharePoint.
The Microsoft Graph client instance.
An object containing the drive ID and file ID.
The ID of the drive containing the file.
The ID of the file to be deleted.
A promise that resolves when the file is deleted.
const client = await getSharePointClient(opt);const options = { driveId: 'drive-id', fileId: 'file-id' };await deleteFile(client, options); Copy
const client = await getSharePointClient(opt);const options = { driveId: 'drive-id', fileId: 'file-id' };await deleteFile(client, options);
Deletes a file from a specified drive in SharePoint.