Delete detect_key