Hidden Drive
Sharing files by link is surprisingly easy to enable by accident.
This tool strips the anyoneWithLink
permission from files in Google Drive.
Installation
npm install googleapis hidden-drive
Usage
const google = ;const hidden = ; // Create Google Drive API clientconst client = google;const drive = hidden; // Filter file(s)drive; // Hide all files in a particular folderdrive; // Hide all filesdrive; // `hide()` accepts same options as https://developers.google.com/drive/api/v3/reference/files/list