made applications the root route
recursive delete for relations