Skip to content

permanentDelete through SDK #1932

@tdn

Description

@tdn

Is your feature request related to a problem? Please describe the problem.

We are using the SDK in a project where we regularly need to delete files that were temporarily uploaded to OneDrive.

To do this, we use the delete function as provided by the npm package (3.0.7):

async function deleteFile(file) {
  await client
    .api(`/sites/${SITE_ID}/drive/root:/${file.id}.${file.extension}`)
    .delete();
}

However, we now noticed that the deleted files end up in the recycle bin of the site, instead of being permanently deleted. This is confirmed by the MS Graph docs: https://learn.microsoft.com/en-us/graph/api/driveitem-delete

Describe the solution you'd like.

What we really need seems to be driveitem-permanentdelete.

I couldn't find a function in the package that supports this. Is there one? If no, it there a possibility to add it?

Thanks in advance!

Additional context?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions