eomatch.mu_stac.MatchupCatalogue.remove_matchup_collection_asset

eomatch.mu_stac.MatchupCatalogue.remove_matchup_collection_asset#

MatchupCatalogue.remove_matchup_collection_asset(matchup: Matchup, asset_key: str, delete_file: bool = True) bool[source]#

Remove a STAC asset from the matchup Collection, optionally deleting the local file.

Parameters:
  • matchup – any Matchup from the target collection.

  • asset_key – asset key to remove.

  • delete_file – if True (default), delete the local file or directory.

Returns:

True if the asset was found and removed, False otherwise.