forgeloop remove
Usage
forgeloop remove command <name> [--sync] [--guild|--global] [--dir ./project]
forgeloop remove event <eventName> [--dir ./project]
forgeloop remove modal [--custom-id <id>] [<customId>] [--dir ./project]
forgeloop remove button [--custom-id <id>] [<customId>] [--dir ./project]
forgeloop remove select-menu [--custom-id <id>] [<customId>] [--dir ./project]
remove is available for modular and advanced projects only.
Behavior
- Deletes the matching generated file from disk.
- If the target file does not exist, returns:
Nothing to remove: <path> does not exist.
For command only:
--synctriggers an application-command deploy after deletion.--guild/--globalapply to that sync target.
For non-command targets:
--syncis ignored with a warning because component custom IDs are not synced through application command PUT.
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--dir | string | cwd | Project root containing ForgeLoop config. |
--custom-id | string | — | Identifier for modal/button/select-menu removal. |
--sync | boolean | — | After removing a command, redeploy application commands. |
--guild | boolean | — | With --sync, deploy command set to guild scope. |
--global | boolean | — | With --sync, deploy command set to global scope. |