Command

nylas audit logs clear

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

Written by Qasim Muhammad Staff SRE

What does nylas audit logs clear do?

The nylas audit logs clear command permanently deletes all stored audit log entries. This is destructive and cannot be undone. Export logs first with nylas audit export if you need a backup. Use --force to skip the interactive confirmation prompt in automation scripts.

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

The nylas audit logs clear command permanently deletes all stored audit log entries.

Interactive clear (with confirmation)

nylas audit logs clear

Export before clearing

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

Example output

This will remove all audit log files. Configuration is preserved.
? Continue? Yes

✓ Cleared 4 audit log file(s)

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.