sepal_ui.scripts.gee.delete_assets#

sepal_ui.scripts.gee.delete_assets(asset_id, dry_run=True)[source]#

Delete the selected asset and all its content.

This method will delete all the files and folders existing in an asset folder. By default a dry run will be launched and if you are satisfyed with the displayed names, change the dry_run variable to False. No other warnng will be displayed.

Warning

If this method is used on the root directory you will loose all your data, it’s highly recommended to use a dry run first and carefully review the destroyed files.

Parameters:
  • asset_id (str) – the Id of the asset or a folder

  • dry_run (bool) – whether or not a dry run should be launched. dry run will only display the files name without deleting them.

Return type:

None