2
votes

We publish the file daily to a shared folder using the Google service account. Recently, we are receiving an error, googleapiclient.errors.HttpError: https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart&alt=json returned "The user's Drive storage quota has been exceeded.">

We cleared the files from the Shared folder. Though the files are disappeared from the shared folder, it Looks like files are still owned by Google service account and Quota is full. I am planning to delete all the files owned by the Google service account. Is there a way, we can find the list of all files owned by the service account?

1

1 Answers

0
votes

A simple Files: list, while authenticated with the Service Account, should list all files in the Service Account Drive, including files that are in Trash.

A Service Account (if it has not been granted domain-wide delegation and it's not impersonating anyone) is just like a regular account, with its own My Drive. The difference is that you cannot access it via Drive UI.

Reference: