Delete middleware