• Deletes a file from a specified drive in SharePoint.

    Parameters

    • client: Client

      The Microsoft Graph client instance.

    • options: {
          driveId: string;
          fileId: string;
      }

      An object containing the drive ID and file ID.

      • driveId: string

        The ID of the drive containing the file.

      • fileId: string

        The ID of the file to be deleted.

    Returns Promise<void>

    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);