I have a dataviewjs snippet that lists a list of files, and when rendered those files are deleted by running a tp command:
dv.list(dv.pages().file.where(f => f.name.startsWith("Drawing ").path.map(path => "<%+ tp.user.delete_file({FILE_TO_REMOVE:'"+path+"'}) %>"))
The question is:
Instead of going to the note and render it so it removes the files, is there a way to put it into a template that when executed it acts as if it had been rendered?