Selective Dequeing of Client Que Documents for Workflow

Can someone tell me what I can do to selectively clear a client que? I am looking for a way to filter certain docs or events for a project in the DCS queues for workflow and not clear all documents.
In the event that a process runs with corrupted data, my client wants to be able to revert back to a previous state of data and rerun the process after the corrupted data issue is resolved.

The system of record is a db2 database. So, the reasoning is to delete tasks in workflow and only the corresponding documents if they are in still in the broker queue and then rerun. Workflow shares the DCS servers between projects and it could inadvertently clear out valid tasks unrelated to our data calamity.

Thanks in advance.