Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@abetomo/google-drive-cleaner

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@abetomo/google-drive-cleaner

A tool to remove files on Google Drive.

  • 2.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-86.11%
Maintainers
1
Weekly downloads
 
Created
Source

google-drive-cleaner

npm version Test

A tool to remove files on Google Drive.

install

% npm install @abetomo/google-drive-cleaner

dryrun

example

  • Owner is GMAIL_ADDRESS
  • File name contains .xlsx
% google-drive-cleaner \
-a AUTH_JSON_FILE_PATH \
-q "'GMAIL_ADDRESS' in owners and name contains '.xlsx'"

Because it is dryrun, the file to be deleted is only displayed.

query

See Search query terms and operators for queries specified with -q.

delete

Add --no-dryrun option.

example

  • Owner is GMAIL_ADDRESS
  • File name contains .xlsx
% google-drive-cleaner \
-a AUTH_JSON_FILE_PATH \
-q "'GMAIL_ADDRESS' in owners and name contains '.xlsx'" \
--no-dryrun

By adding the --no-dryrun option, the files on the drive are deleted.

Usage example of Node.js API

'use strict'

const GoogleDriveCleaner = require('@abetomo/google-drive-cleaner')
const googleDriveCleaner = new GoogleDriveCleaner('AUTH_JSON_FILE_PATH')
googleDriveCleaner.clean({
  query: 'Query string for searching delete files.',
  dryrun: true
})

AUTH_JSON_FILE_PATH

Use GCP service account credentials. You first need to create a service account, download its json key.

Keywords

FAQs

Package last updated on 08 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc