1

In the Python API of GEE, is it possible to delete a known asset ?

I can crawl in but don't know how to delete one :

assets = ee.data.listAssets({'parent': folder})

for asset in assets: 
    # something like 
    if asset.description = 'toto':
        asset.delete()

1

To delete asset from earth engine API knowing the assetID, you have 2 solutions :

CLI

in you terminal

earthengine rm users/username/asset_id

Python

in your python file or notebook

ee.data.deleteAsset('users/username/asset_id')

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.