Delete Notes
You can delete a specific note by its ID or clear all notes at once.
Usage
bash
notely-cli --delete [id|all]
notely-cli -d [id|all]Deleting a Specific Note
If you don't provide an ID, you'll be prompted to enter one.
1. ID Selection
bash
╭──────────────────────────────────────────────────────────╮
│ ✦ DELETE NOTE │
╰──────────────────────────────────────────────────────────╯
Enter a note ID, or type "all" to delete everything
❯ 73ad439842. Confirmation
The CLI will show the note content and ask for a final y/n confirmation to prevent accidental deletion.
bash
╭──────────────────────────────────────────────────────────╮
│ ✦ DELETE NOTE │
╰──────────────────────────────────────────────────────────╯
╭──────────────────────────────────────────────────────────╮
│ ⚠ Are you sure you want to delete this note? │
╰──────────────────────────────────────────────────────────╯
┌──────────────────────────────────────────────────────────┐
│ my awesome note │
│ this is my awesome note cli app │
└──────────────────────────────────────────────────────────┘
❯ Confirm? (y/n):3. Success
bash
╭──────────────────────────────────────────────────────────╮
│ ✦ DELETE NOTE │
╰──────────────────────────────────────────────────────────╯
╭──────────────────────────────────────────────────────────╮
│ ✔ Note deleted successfully! │
╰──────────────────────────────────────────────────────────╯Deleting All Notes
To clear your entire database, you can type all at the prompt or run the command with the all argument.
Safety Warning
Deleting all notes requires typing "yes" to confirm the action.
bash
╭──────────────────────────────────────────────────────────╮
│ ✦ DELETE NOTE │
╰──────────────────────────────────────────────────────────╯
╭──────────────────────────────────────────────────────────╮
│ ⚠ This will permanently delete ALL notes. │
╰──────────────────────────────────────────────────────────╯
┌──────────────────────────────────────────────────────────┐
│ ⚠ EVERYTHING WILL BE DELETED │
└──────────────────────────────────────────────────────────┘
❯ Type "yes" to confirm:Result
bash
╭──────────────────────────────────────────────────────────╮
│ ✦ DELETE NOTE │
╰──────────────────────────────────────────────────────────╯
╭──────────────────────────────────────────────────────────╮
│ ✔ All notes deleted. │
╰──────────────────────────────────────────────────────────╯Pro Tip
You can skip the ID prompt by passing the ID directly to the command: notely-cli -d [id] This will take you straight to the confirmation step.