Finally finished deletion code, I hope