Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
carlosngis opened this issue Nov 13, 2017 · 2 comments

Comments

@carlosngis
Copy link

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

@gena
Copy link
Collaborator

gena commented Nov 13, 2017

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.

@carlosngis
Copy link
Author

carlosngis commented Nov 13, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants