clear tdpotn, and delete error