cascade data and study on deletion

Makes deletion of the objects easier.