Skip to main content

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:

  • --sync triggers an application-command deploy after deletion.
  • --guild / --global apply to that sync target.

For non-command targets:

  • --sync is ignored with a warning because component custom IDs are not synced through application command PUT.

Flags

FlagTypeDefaultDescription
--dirstringcwdProject root containing ForgeLoop config.
--custom-idstringIdentifier for modal/button/select-menu removal.
--syncbooleanAfter removing a command, redeploy application commands.
--guildbooleanWith --sync, deploy command set to guild scope.
--globalbooleanWith --sync, deploy command set to global scope.