Skip to end of banner
Go to start of banner

How to delete Records in SRS created by specific load

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

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 remove. Instance keeps alive and does not know about records absence, Instance's SOURCE field is still equal to MARC. As a result, 'View source' button continues to be displayed.



  • No labels