eomatch.mu_stac.MatchupCatalogue.remove_product_asset#
- MatchupCatalogue.remove_product_asset(product: scrappi.ProductItem, asset_key: str, delete_file: bool = True) bool[source]#
Remove a STAC asset from a product Item, optionally deleting the local file.
- Parameters:
product – the
ProductItemwhose catalogue Item to update.asset_key – asset key to remove, e.g.
"data".delete_file – if
True(default), delete the local file or directory that the asset href points to. Remote URLs are never deleted.
- Returns:
Trueif the asset was found and removed,Falseif the item or asset was not found.