@startuml images/morpho-delete-datapackage-sequence.png participant ": DeleteCommand" as delete_command <> participant ": DataStoreController" as data_store_controller <> participant "dataPackage: DataPackage" as data_package <> participant ": DataStore" as data_store <> -> delete_command: dataPackage, []dataStores activate delete_command delete_command -> data_store_controller: delete(dataPackage,dataStores) activate data_store_controller data_store_controller -> data_package: identifiers() activate data_package data_store_controller <- data_package: identifier set deactivate data_package loop iterate the store dataStore array loop iterate the identifier set data_store_controller -> data_store: delete(identifier) activate data_store end data_store_controller -> data_store: delete(oreId) deactivate data_store end deactivate data_store_controller deactivate delete_command @enduml