Bulk delete of Reviews
Hello,
I am new to Collaborator, so please bear with me if this is a simple/silly question:
As a part of clean up process, I need to archive and delete multiple reviews.
I am able to archive multiple reviews through ccollab admin archive review <review ID1, review Id2, etc> command. However from the documentation I am unable to find a way to delete multiple/bulk reviews at one go.
Can someone please help?
Thanks,
Puneet.
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