fix cmake and add delete for parsed config