Added delete_term cleanup

Signed-off-by: Elliot Condon <e@elliotcondon.com>