> ## Documentation Index
> Fetch the complete documentation index at: https://docs.talosjs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# swagger:remove

> Remove an existing swagger module.

Remove a swagger module from `modules/<name>/`. The command removes standard module references from `modules/app/src/AppModule.ts`, `modules/shared/src/SharedModule.ts`, and the root `tsconfig.json` path aliases before deleting the module directory.

## Usage

```bash theme={null}
talos swagger:remove [options]
```

## Examples

Run with no flags to be prompted for the swagger name and confirmation:

```bash theme={null}
talos swagger:remove
```

Remove a swagger non-interactively:

```bash theme={null}
talos swagger:remove --name=api-docs --silent
```

## Options

| Option     | Description                                 | Default             |
| ---------- | ------------------------------------------- | ------------------- |
| `--name`   | Name of the swagger module to remove.       | Prompted if omitted |
| `--cwd`    | Working directory the command runs in.      | Current directory   |
| `--silent` | Skip prompts, confirmation, and log output. | `false`             |

## Safeguards

Only modules marked as `type: "swagger"` in `modules/<name>/<name>.yml` are removed. The `app` and `shared` modules are protected.
