Bulk delete of Reviews
- 4 years ago
This command proceeds only one parameter (review) at a time. You can develop a script that will take a review ID from e.g. a file and run the "admin review delete" command one by one. Here is an example of a very simple batch file with this command:
@echo off
for /f %%G IN (list.txt) DO "C:\Program Files\Collaborator\ccollab.exe" --url http://localhost:8080/ --user admin --password "admin" admin review delete %%GAs an input, it requires a file with reviews IDs split into new lines:
24
34
53
Otherwise, you can generate a .xml file and process it with the admin batch command. The command-line client will open one single connection to the server and process with all the commands specified in the .xml file.
https://support.smartbear.com/collaborator/docs/reference/command-line/ccollab-admin-batch.html