delete tasks. pattern match error fix for lsp, lsc