Added hook to delete all instances of errors

Signed-off-by: Tom Wright <tom@inflatablecookie.com>