update error code when delete post wrong in flow chart