delete node under given constraits