delete detector after the detection is stopped(by para)