Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

permanentDelete through SDK

Aperta
#1,932 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
38/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
typescript
Ambito
api

Direzione di ricerca

Start with the JavaScript SDK's support for the Microsoft Graph driveItem operations and compare the existing delete usage with the linked driveitem-permanentdelete API documentation. Confirm how the permanent-delete operation should be exposed through the SDK and verify that callers can invoke it for a OneDrive file.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

status:waiting-for-triage type:feature
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

Lingua principale
TypeScript
Stelle
833
Fork
240
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoftgraph/msgraph-sdk-javascript

Tutte le issue di microsoftgraph/msgraph-sdk-javascript

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.