When you want to resync the data in the protocol, you can clear the tables DB where the data is stored using the ‘Delete Data' feature. Once you clean the table via UI, you can delete the patients, visits, and specimens.
Go to the OpenClinica OC Configuration page of the study for which you wish to delete the study mapping. Click on 'More' → Delete Data.
...
Once you click on the ‘Yes' on the above popup, study data will be deleted, and you will get a notification '<add notification>’.
Study data before deleting
<Add SS>
Study data after deleting
<Add SS>Study data deleted’.
...
To clean the data from protocol, you can go to protocol and select existing patients and delete them in one go.
Go to the participant list view → select the square icon at the top of the page.
...
Once you select the icon, all the patients on that list view will get selected. Now, click on delete to proceed further.
...
After clicking on the delete button, you will get a notification like below where you will need to provide the reason for deleting the data. Then click on Yes and wait for a bit to clean up the data.
...
Once all metadata is deleted, you can rerun the sync.