Last active
March 6, 2019 08:18
-
-
Save ProGM/522a4b414249c44160db65206ae8b7c9 to your computer and use it in GitHub Desktop.
Delete files from a google drive folder via command line
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Delete all files in the drive folder, excluding google docs | |
find . -type f \( ! -iname "*.gdoc" -and ! -iname "*.html" -and ! -iname "*.gsheet" -and ! -iname "*.gdraw" -and ! -iname "*.gslides" -and ! -iname "*.gform" -and ! -iname "*.gtable" -and ! -iname Icon\? \) -delete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment