Testing the remove command

Let's test out the remove command in Terminal. I'll list out my notes using node app.js list, so I can see which notes I have to remove:

node app.js list

I'll remove the note with the title t, using the node app.js remove command and our flag "t":

node app.js remove -t="t"

We'll remove the note with the title t, and as shown previous, Note was removed prints to the screen. And if I use the up arrow key twice, I can list the notes out again, and you can see the note with the title t has indeed gone:

Let's remove one more note using the node app.js remove command. This time we're going to use --title, which is the argument name, and the note we're going to remove has the title flag title, as shown in this code:

When I remove it, it says Note was removed, and if I rerun the list command, I can see that we have three notes left, the note was indeed removed , as shown here:

And that is it for the notes application.