When deleting datamodels also delete current mapping

.

(from redmine: issue id 1129, created on 2018-08-09tgradl, closed on 2018-08-10)