Tva/delete - tidy view/applications.py, in "delete()" function