refactor delete_file to partial
auth.views