Command

nylas audit logs clear

Clear all audit log entries. This is a destructive action — consider exporting logs first with `nylas audit export`.

Usage

nylas audit logs clear [--force]

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
--forceSkip confirmation prompt

Examples

Interactive clear (with confirmation)

nylas audit logs clear

Export before clearing

nylas audit export -o audit-backup.json
nylas audit logs clear --force

Troubleshooting

Logs not clearing

Check file permissions on the audit log directory. Use `nylas audit config show` to find the log path.

Recommended guides

Run nylas audit logs clear --help for full help output.