|Docs

railway unlink

Remove the link between the current directory and a Railway project or service.

Usage

railway unlink [OPTIONS]

Options

FlagDescription
-s, --serviceUnlink only the service (keep project link)
-y, --yesSkip confirmation prompt
--jsonOutput in JSON format

Examples

railway unlink

Removes the entire project link from the current directory.

railway unlink --service

Keeps the project and environment link but removes the service association.

Skip confirmation

railway unlink --yes

Useful for scripts and automation.