iterative / iterative/PyDrive2

Delete/Trash files when authenticating with a Service Account

Offen
#351 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
question
Vorherrschende Sprache
Python
Sterne
670
Forks
75
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Hi!

So I need to use service account authentication since I'm in a headless setup with no GUI access in the machine. So I have created a service account, shared the drive folder with that account and given it Editor permissions.

The problem is that I can't seem to remove files like this. I googled a bit and turns out Editors can't remove files from Drive. So I'm wondering if there's any approach with PyDrive2 to have a headless setup and to be able to remove files.

Any alternatives will be appreciated!

Also trashing the files would be okay, but can't do that either.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start by reviewing the issue's service-account authentication and Google Drive Editor-permission details, then check the PyDrive2 documentation for file deletion and trashing operations. Done means documenting whether a headless service-account workflow supports these actions and identifying any permission or ownership limitation.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
api, cloud
Issue-Typ
Dokumentation
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.