How to filter and delete multiple tiddlers?

I known it could be done with this king of command :slight_smile:

INDEX=/path/to/myTW/index.html
tiddlywiki --load $INDEX \
               --deletetiddlers '[tag[IWantToDeleteTiddlersWithThatTag]]' \
               --output /tmp --render "$:/core/save/all" "newindex.html" "text/plain"

How to do it from online TW?
The “dustbin” icon can only delete one by one,

<$button>
<$list filter="....">
<$action-deletetiddler $tiddler=<<currentTiddler>>/>
</$list>
Delete batch
</$button>
1 Like

You can also do this directly in the $:/AdvancedSearch Filter tab. Just enter the desired filter syntax (e.g. [tag[IWantToDeleteTiddlersWithThatTag]]). The interface will show you a list of all matching tiddlers. Next to the input field, additional buttons will appear. Press the “dustbin” button. You will be asked to confirm before deleting all matching tiddlers.

enjoy,
-e

1 Like

Could I ask, what filter you’d use, to select tag[IWantToDeleteTiddlersWithThatTag] + “created last 24h” or during a time period ?

Use the days operator, like this:

[tag[IWantToDeleteTiddlersWithThatTag]days:created[-1]]

enjoy,
-e

1 Like

Great !
What if tiddlers must contain a certain “field = value” also

What if tiddlers must contain a certain “field = value” also

Then add in fieldname[value] filter operator, like this:

[tag[IWantToDeleteTiddlersWithThatTag]days:created[-1]myfield[somevalue]]

i.e., tiddlers tagged with IWantToDeleteTiddlersWithThatTag that were created in the last day, and have a field named myfield with a value of somevalue

1 Like

I am a TW learning student.
Filter with “not a certain value” :

!myfield[somevalue]]

But empty?
Learning a lot reading tiddlers code at TW5 CPL Wiki — TiddlyWiki5 Plugin Library for TiddlyWiki Chinese Communities