subject and plan classes delete functions