Delete action code moved from form to controller.