To partially answer my own question (maybe it'll help someone else) I came across this article:
http://oldwiki.tiddlywiki.org/wiki/Delete_Tiddler which points to: http://lewcid.org/tiddlywiki-bookmarklets/ alas, that page has expired, but I found it on the Internet Archive: http://web.archive.org/web/20091021233319/http://lewcid.org/tiddlywiki-bookmarklets/ Copying the link location for the DeleteAllTagged bookmarklet and double decoding it we get the following code: var tag = prompt('Delete tiddlers with the tag:',''); store.suspendNotifications(); var t = store.getTaggedTiddlers(tag); for(var i=0;i<t.length;i++) store.removeTiddler(t[i].title); store.resumeNotifications(); refreshDisplay(); (which for my purposes I can just set tag to "deleteMe". I'd still appreciate any advice on whether or not my approach is the right way as per my original query about updating content. On Sat, May 26, 2012 at 12:40 PM, Glenn Wilkinson <[email protected]> wrote: > Hi all, > > Is there a way to delete all tiddlers by tag? e.g all tiddlers with > the "toBeDeleted" tag should be deleted. Alternatively, all tiddlers > but those with containing a tag of "toBeKept" should be deleted. > > My reason is for the purpose of updating content. I'm using the > ImportTiddlersPlugin to allow students to update content from a > central source. It works fine, except when I've deleted tiddlers from > the 'master' content - i.e. the content won't get deleted during the > import. My thought was rather than deleting tiddlers in the master > content to rather add a tag called 'toBeDeleted', and then have a > macro which automatically runs after the ImportTiddlerPlugin to delete > tiddlers with such a tag. > > Another caveat is that I'm using TiddlerNotesPlugin to allow students > to take notes - so I can't just overwrite their existing files (as > they'd lose their notes). My second idea is for the macro to delete > all tiddles except those marked with the tag "myNotes", and then run > the ImportTiddlersPlugin (this would allow me to actually delete > content in the master content). > > Any help or suggestions on best solving this would be greatly appreciated! > > Glenn -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.

