How to delete Records in SRS created by specific load

MODSOURCE-68 - Getting issue details... STATUS

1. Click to see the log of the loaded file 


2. Copy JobExecution id from the top of the log


3. Send delete request passing JobExecution id as URI parameter

MethodDescription



DELETE

/change-manager/jobExecutions/{jobExecutionId}/records

Delete JobExecution and associated records in SRS. Refer to API documentation.

curl -w '\n' -X DELETE -D -   \
   -H "Content-type: application/json"   \
   -H "Accept: */*"   \
   -H "x-okapi-tenant: diku"  \
   -H "x-okapi-token: {{valid-token}}" \
   {{host}}/change-manager/jobExecutions/3e46d1a3-2bb4-4951-91f8-e53c5dfc7cec/records


Expect successful response status 204 with no content


Warning: After removal of the target records in SRS, related Instance (from Inventory) doesn't get removed. The Instance remains in Inventory and does not know that the SRS MARC has been removed. The Instance's SOURCE field is still equal to MARC. As a result, the 'View source' and quickMARC actions continue to be displayed. This behavior may be reviewed and refined in the future.