Command

nylas auth remove

Remove a grant from local CLI configuration.

Written by Qasim Muhammad Staff SRE

What does nylas auth remove do?

The nylas auth remove command removes a grant and its cached tokens from your local config only — it does NOT revoke the grant on the Nylas server. The grant ID is a positional argument. To revoke server-side, use nylas auth revoke <grant-id> instead.

Usage

nylas auth remove <grant-id>

Flags

FlagDescription
--jsonOutput as JSON
--no-colorDisable color output
--verbose(-v)Enable verbose output
--configCustom config file path
--help(-h)Show help for the command
--limitLimit results (most list commands)
--yes(-y)Skip confirmations

Examples

Remove a grant from local config

nylas auth remove abc-123-def-456

Revoke on the server instead (permanent)

nylas auth revoke abc-123-def-456

Example output

✓ Removed grant_abc123 from local config

The grant is still valid on the Nylas server.
Re-add it later with 'nylas auth add', or use
'nylas auth revoke' to permanently revoke it.

Troubleshooting

Account reappears after removal

Ensure you are not running nylas auth login again from a script. Check crontab and shell profiles for auto-login commands.

Permission denied when removing

Check file permissions on ~/.config/nylas/. The CLI needs write access to delete stored credentials.

Recommended guides

Run nylas auth remove --help for full help output.