How do you delete a file in your google drive with the Google Drive API? I’m using v3 and I’ve literally tried everything and nothing’s been working. I believe the ones I’ve tried to be outdated, what is the current way?
Update: I wasn’t really experimenting with a code, just looking for a Method which is why I didn’t show. Nevertheless,
service.files().delete(fileId=fileid).execute()
The error I’m getting is with service, that it has no attribute files. I’ve defined everything else (service, file id), so I’ve drawn the conclusion that it’s out of date.
Sorry for any errors btw, I’m on a mobile.