Move delete into before so it actually works.