I assume you are talking about optimising the microflow, and not the database statement. Are you running into performance issues?
A best practice is to never commit in a loop and use batching when processing large amounts of data.
Instead of iterating over the list, apply the filter, and obtain the subset of objects that needs to be emptied. Then you can have a ‘Change List’ activity to replace all items with empty. Hope this helps !!!