subEntity delete function