Google Drive

Frends.GoogleDrive.Delete / 1.0.0

Summary

Deletes files outright rather than moving them to the trash, so there is nothing to restore afterwards. Deleting a folder takes its contents with it, and shared drives need organiser rights on the parent.

Typical use — housekeeping where the trash would only defer the problem — worth pairing with a backup step given it cannot be undone

Details

Frends version
5.5 and newer
Agent
Crossplatform
Target framework
net6.0

Input parameters.

Name Type Default Example Description
FileQuery String * '42o3j8C7kntMJZeElbZb5B_5u92snSIkb' in parents and name contains 'test'

Query for specific files to be deleted. See Google Drive API Guide

ServiceAccountKeyJSONSecret String { "type": "service_account", "project_id": "something", "private_key_id": "fdsafdsafdsalmnop12345678909876543212344", "private_key": "-----BEGIN PRIVATE KEY-----\nMIIE.......Hw==\n-----END PRIVATE KEY-----\n", "client_email": "someone@something.iam.gserviceaccount.com", "client_id": "123456789012345678900", "auth_uri": "https://accounts.google.com/o/oauth2/auth", "token_uri": "https://oauth2.googleapis.com/token", "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", "client_x509_cert_url": "https://www....nt.com" }

Service account key JSON.

An unhandled error has occurred. Reload 🗙