diff --git a/README.md b/README.md index 31dc50f..8eb507a 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ usage: geebam upload [-h] -u USER --source SOURCE --dest DEST [-m METADATA] [--large] [--nodata NODATA] -Google Earth Engine Batch Asset Uploader +Google Earth Engine Batch Asset Manager optional arguments: -h, --help show this help message and exit @@ -129,6 +129,13 @@ Console output: 2016-07-17 16:14:16,898 :: root :: INFO :: Collection users/pinkiepie/test removed ``` +### Delete all directories / collections based on a Unix-like pattern + +``` +geebam delete users/pinkiepie/*weird[0-9]?name* +``` + + ### Upload a directory with images to your myfolder/mycollection and associate properties with each image: ``` geebam upload -u pinkiepie@gmail.com --source path_to_directory_with_tif -m path_to_metadata.csv --dest users/pinkiepie/myfolder/myponycollection diff --git a/geebam.py b/geebam.py index ea3a020..83f23dc 100755 --- a/geebam.py +++ b/geebam.py @@ -2,8 +2,6 @@ import argparse import logging -import os -import sys import ee @@ -42,7 +40,7 @@ def main(args=None): parser = argparse.ArgumentParser(description='Google Earth Engine Batch Asset Manager') subparsers = parser.add_subparsers() - parser_delete = subparsers.add_parser('delete', help='Deletes collection and all items inside.') + parser_delete = subparsers.add_parser('delete', help='Deletes collection and all items inside. Supports Unix-like wildcards.') parser_delete.add_argument('id', help='Full path to asset for deletion. Recursively removes all folders, collections and images.') parser_delete.set_defaults(func=delete_collection_from_parser)