use file instead of template to delete file when disabling