[{"data":1,"prerenderedAt":456,"buildId":457},["ShallowReactive",2],{"page:\u002Fdocs\u002F5.x\u002Freference\u002Fcommands\u002Fremove":3},{"id":4,"title":5,"body":6,"description":439,"extension":440,"frontmatter":441,"heading":15,"meta":447,"navigation":449,"order":444,"path":450,"seo":451,"sitemap":452,"source":453,"stem":454,"__hash__":455},"docs\u002Fdocs\u002F5.x\u002Freference\u002Fcommands\u002Fremove.md","kubb remove - Remove a plugin or parser",{"type":7,"value":8,"toc":426},"minimark",[9,21,30,68,111,116,156,160,176,214,233,237,323,331,335,369,373,377,382],[10,11,12,16,17,20],"p",{},[13,14,15],"code",{},"kubb remove"," deletes a plugin or parser from your ",[13,18,19],{},"kubb.config.ts"," and uninstalls its package. It shows the lines it removes and asks first.",[10,22,23,24,29],{},"Ids, versions, and project files work as in ",[25,26,28],"a",{"href":27},"\u002Fdocs\u002F5.x\u002Freference\u002Fcommands#extension-commands","Extension commands",".",[31,32,37],"pre",{"language":33,"filename":34,"code":35,"class":36},"shell","Terminal","kubb remove plugin-zod # remove and uninstall\nkubb remove plugin-zod --no-uninstall # keep the package installed","highlights",[13,38,40,57,58],{"class":39},"language-shell",[41,42,45,49,53],"span",{"class":43,"style":44},"line","display: inline",[41,46,48],{"style":47},"color:#6f42c1;--hls-dark:#b392f0","kubb ",[41,50,52],{"style":51},"color:#24292e;--hls-dark:#e1e4e8","remove plugin-zod ",[41,54,56],{"style":55},"color:#6a737d;--hls-dark:#6a737d","# remove and uninstall","\n",[41,59,60,62,65],{"class":43,"style":44},[41,61,48],{"style":47},[41,63,64],{"style":51},"remove plugin-zod --no-uninstall ",[41,66,67],{"style":55},"# keep the package installed",[31,69,73],{"language":70,"filename":71,"code":72,"class":36},"text","Output","◇ Plugin plugin-zod v5.13.0\n│ Config kubb.config.ts\n│ - import { pluginZod } from '@kubb\u002Fplugin-zod'\n│ - pluginZod({ output: { path: 'zod' } }),\n│ Uninstalls @kubb\u002Fplugin-zod\n│\n◆ Remove it?",[13,74,76,57,81,57,86,57,91,57,96,57,101,57,106],{"class":75},"language-text",[41,77,78],{"class":43,"style":44},[41,79,80],{"style":51},"◇ Plugin plugin-zod v5.13.0",[41,82,83],{"class":43,"style":44},[41,84,85],{"style":51},"│ Config kubb.config.ts",[41,87,88],{"class":43,"style":44},[41,89,90],{"style":51},"│ - import { pluginZod } from '@kubb\u002Fplugin-zod'",[41,92,93],{"class":43,"style":44},[41,94,95],{"style":51},"│ - pluginZod({ output: { path: 'zod' } }),",[41,97,98],{"class":43,"style":44},[41,99,100],{"style":51},"│ Uninstalls @kubb\u002Fplugin-zod",[41,102,103],{"class":43,"style":44},[41,104,105],{"style":51},"│",[41,107,108],{"class":43,"style":44},[41,109,110],{"style":51},"◆ Remove it?",[112,113,115],"h2",{"id":114},"arguments","Arguments",[117,118,119,135],"table",{},[120,121,122],"thead",{},[123,124,125,129,132],"tr",{},[126,127,128],"th",{},"Argument",[126,130,131],{},"Required",[126,133,134],{},"What it does",[136,137,138],"tbody",{},[123,139,140,146,149],{},[141,142,143],"td",{},[13,144,145],{},"\u003Cid>",[141,147,148],{},"Yes",[141,150,151,152,29],{},"The ",[25,153,155],{"href":154},"\u002Fdocs\u002F5.x\u002Freference\u002Fcommands#ids","registry id",[112,157,159],{"id":158},"what-it-removes","What it removes",[10,161,162,164,165,171,172,175],{},[13,163,15],{}," drops the call and its unused import. It leaves the generated files on disk. With ",[25,166,168],{"href":167},"\u002Fdocs\u002F5.x\u002Freference\u002Fconfiguration#outputclean",[13,169,170],{},"output.clean",", the next ",[13,173,174],{},"kubb generate"," removes them.",[117,177,178,188],{},[120,179,180],{},[123,181,182,185],{},[126,183,184],{},"It refuses to remove",[126,186,187],{},"Because",[136,189,190,198,206],{},[123,191,192,195],{},[141,193,194],{},"The adapter",[141,196,197],{},"A config needs one. Change it by hand.",[123,199,200,203],{},[141,201,202],{},"The last parser",[141,204,205],{},"A config needs at least one.",[123,207,208,211],{},[141,209,210],{},"An extension another plugin in the config depends on",[141,212,213],{},"Remove that plugin first.",[10,215,216,217,220,221,224,225,228,229,29],{},"Extensions that ship with ",[13,218,219],{},"kubb",", such as ",[13,222,223],{},"@kubb\u002Fplugin-barrel"," and ",[13,226,227],{},"@kubb\u002Fparser-md",", leave the config but stay installed. See ",[25,230,232],{"href":231},"#command-output","Command output",[112,234,236],{"id":235},"options","Options",[117,238,239,254],{},[120,240,241],{},[123,242,243,246,249,252],{},[126,244,245],{},"Flag",[126,247,248],{},"Alias",[126,250,251],{},"Default",[126,253,134],{},[136,255,256,273,293,307],{},[123,257,258,263,268,270],{},[141,259,260],{},[13,261,262],{},"--config \u003Cpath>",[141,264,265],{},[13,266,267],{},"-c",[141,269],{},[141,271,272],{},"Path to the Kubb config to edit.",[123,274,275,280,285,290],{},[141,276,277],{},[13,278,279],{},"--yes",[141,281,282],{},[13,283,284],{},"-y",[141,286,287],{},[13,288,289],{},"false",[141,291,292],{},"Skip the confirmation.",[123,294,295,300,302,304],{},[141,296,297],{},[13,298,299],{},"--no-uninstall",[141,301],{},[141,303],{},[141,305,306],{},"Edit the config only and keep the package installed.",[123,308,309,314,316,320],{},[141,310,311],{},[13,312,313],{},"--dry-run",[141,315],{},[141,317,318],{},[13,319,289],{},[141,321,322],{},"Show what the command would uninstall or write, then stop.",[324,325,327,328,330],"blockquote",{"as":326},"tip","Pass ",[13,329,279],{}," in scripts and CI, where no one can answer the prompt.",[112,332,334],{"id":333},"exit-codes","Exit codes",[117,336,337,347],{},[120,338,339],{},[123,340,341,344],{},[126,342,343],{},"Code",[126,345,346],{},"When",[136,348,349,359],{},[123,350,351,356],{},[141,352,353],{},[13,354,355],{},"0",[141,357,358],{},"The extension is removed, is not in the project, or you canceled a prompt.",[123,360,361,366],{},[141,362,363],{},[13,364,365],{},"1",[141,367,368],{},"The id is invalid or unknown, no config is found, the extension cannot be removed, or the uninstall fails.",[112,370,372],{"id":371},"less-common-cases","Less common cases",[374,375,232],"h3",{"id":376},"command-output",[10,378,379,381],{},[13,380,15],{}," removes the call, even one Kubb Studio switched off, and drops the unused import.",[383,384,385,395,402,417,420,423],"ul",{},[386,387,388,389,171,393,175],"li",{},"It leaves the plugin's generated files on disk. With ",[25,390,391],{"href":167},[13,392,170],{},[13,394,174],{},[386,396,397,398,401],{},"It refuses an adapter, such as ",[13,399,400],{},"@kubb\u002Fadapter-oas",", because a config needs one. Change the adapter in the config by hand.",[386,403,404,407,408,410,411,413,414,416],{},[13,405,406],{},"@kubb\u002Fparser-ts",", ",[13,409,227],{},", and ",[13,412,223],{}," ship with ",[13,415,219],{},". They leave the config but stay installed.",[386,418,419],{},"A package that another config entry still imports also stays installed.",[386,421,422],{},"Only plugins that run count as dependents. A plugin Studio switched off does not block the removal.",[386,424,425],{},"When the extension is not in the project, nothing changes and the exit code is 0.",{"title":427,"searchDepth":428,"depth":428,"links":429},"",5,[430,432,433,434,435],{"id":114,"depth":431,"text":115},2,{"id":158,"depth":431,"text":159},{"id":235,"depth":431,"text":236},{"id":333,"depth":431,"text":334},{"id":371,"depth":431,"text":372,"children":436},[437],{"id":376,"depth":438,"text":232},3,"The remove command deletes a plugin or parser from kubb.config.ts and uninstalls its package.","md",{"layout":442,"title":5,"description":439,"outline":443,"order":444,"navigation":445},"doc",[431,438],7,{"title":15,"icon":446},"i-iconoir-trash",{"layout":442,"outline":448},[431,438],{"title":15,"icon":446},"\u002Fdocs\u002F5.x\u002Freference\u002Fcommands\u002Fremove",{"title":5,"description":439},{"loc":450},"kubb-labs\u002Fkubb\u002Fdocs\u002F5.x\u002Freference\u002Fcommands\u002Fremove.md","docs\u002F5.x\u002Freference\u002Fcommands\u002Fremove","YW-153CXZGSqvb974xTmgqjQCBaaVh__qHhoLc4d9Gk",1795727677210,"1b64b1eb-29b7-4f90-ad41-6f24721e1669"]