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
| Flag | Description |
|---|---|
| --json | Output as JSON |
| --no-color | Disable color output |
| --verbose(-v) | Enable verbose output |
| --config | Custom config file path |
| --help(-h) | Show help for the command |
| --limit | Limit results (most list commands) |
| --yes(-y) | Skip confirmations |
| --force | Skip confirmation prompt |
Examples
Interactive clear (with confirmation)
nylas audit logs clearExport before clearing
nylas audit export -o audit-backup.json
nylas audit logs clear --forceTroubleshooting
Logs not clearing
Check file permissions on the audit log directory. Use `nylas audit config show` to find the log path.
Recommended guides
Create a Manus Skill for Email and Calendar
Build a Manus AI Skill that gives your agent email and calendar access using the Nylas CLI.
Nylas CLI with OpenClaw Personal Assistant
Give your OpenClaw assistant email, calendar, and contacts superpowers. Includes exec-approvals.json setup and a ready-made Nylas skill.
Manage Calendar from the Terminal
DST-aware event creation, timezone locking, AI scheduling, and break time protection.
GPG Encrypted Email from the CLI
Sign, encrypt, and verify email with GPG. Auto-fetches keys from public keyservers.
Give AI Agents Email Access via MCP
Connect Claude, Cursor, or VS Code to your inbox and calendar in one command.
Send Email from the Terminal
Send, read, search, and automate email from your terminal. Works with Gmail, Outlook, and IMAP.
Run nylas audit logs clear --help for full help output.