add function to remove entity and product in backend