ee-runner icon indicating copy to clipboard operation
ee-runner copied to clipboard

data.js does not implement "rm" command to delete EE assets/collections

Open carlosngis opened this issue 7 years ago • 2 comments

Is this implemented somewhere else ? I could not find any reference or call to the /rm command

https://developers.google.com/earth-engine/command_line#rm

Is it possible this gets implemented at some point or you show us how to add it to data.js by calling ee.data.send_('/rm',.... using the right set of parameters ?

Thanks

carlosngis avatar Nov 13 '17 01:11 carlosngis

It should be possible to delete assets using ee.data.deleteAsset(asset_id), maybe it makes sense to include a new example to demonstrate how this can be done.

gena avatar Nov 13 '17 13:11 gena

It'd be good to see how you build the call to ee.data.deleteAsset() to recursively delete assets within a collection, similar to what you'd do by calling:

earthengine rm -r "users/username/folder_id"

using the EE python command line

Thanks

carlosngis avatar Nov 13 '17 23:11 carlosngis