Deleting blog entries - nshebang/nob GitHub Wiki
Before reading this, please note that there is a difference between deleting an entry and making it draft (unpublishing it)
nob doesn't have a delete command or anything similar. If you want to delete an entry, you need to delete its Markdown and HTML files manually.
Example
Let's say you want to delete the entry titled "Kant's transcendental subject":
📁 <your blog root directory>
|_ 📁 .nob
| |_ 📁 entries
| |_ how_to_install_neovim.md
| |_ kants_transcendental_subject.md
| |_ markdown_tutorial.md
| |_ 📁 templates
| |_ 📄 index.html
| |_ 📄 post.html
| |_ 📄 rss.xml
| |_ 📄 my_blog_link.txt
|_ 📄 how_to_install_neovim.html
|_ 📄 kants_transcendental_subject.html
|_ 📄 markdown_tutorial.html
To delete the entry, you'd need to run: rm kant_s_transcendental_subject.html .nob/entries/kant_s_transcendental_subject.md (assuming you are using Linux or MacOS and you run the command from the root directory of your blog)
Finally, just rebuild the blog (nob build) to apply the changes.
--autodelete option (nob 1.1.0+ only)
If you run nob build --autodelete or nob build -d, the program will apply all changes and automatically delete any HTML files that don't have a Markdown file in .nob/entries/.