Added feature to delete templates on deactivate

Use it if it helps. I'm grateful to learn from you ;)