Added common func delete_entity in base module