(self, asset_id, verbose)
| 1116 | self._delete_asset(asset, recursive, args.verbose, args.dry_run) |
| 1117 | |
| 1118 | def _safe_get_info(self, asset_id, verbose): |
| 1119 | try: |
| 1120 | return ee.data.getInfo(asset_id) |
| 1121 | except ee.EEException as e: |
| 1122 | if verbose: |
| 1123 | print(f'Failed to get info for {asset_id}. {e}') |
| 1124 | return None |
| 1125 | |
| 1126 | def _delete_asset(self, asset_id, recursive, verbose, dry_run): |
| 1127 | """Attempts to delete the specified asset or asset collection.""" |