DV list empty notes

Setup

Paste the code below into your note. Remember to add three backticks before and after the code to mark it as a codeblock.

This will search your complete vault. You can use filters if you want to limit the search to a specific folder or property.

Code

dataview
TABLE WITHOUT ID
	file.link AS "Empty Notes", file.path AS "File Path"
WHERE file.size = 0
SORT "File Path" ASC, "Empty Notes" ASC

Effect

So, in summary, this query creates a table of all empty notes, showing the file link and file path for each note. The table is sorted first by file path and then by file link, both in ascending order. An empty note is defined as a note that has a size of 0.

Example output

DV - list empty notes output.png