How to delete a specific record from Primo?
- Product: Primo
- Relevant for Installation Type: Local
Question
How can I delete a specific record from Primo?
Answer
For every Primo Data Source that you have records to delete:
- Log on to your Primo BO server and create a delete file using the template in Additional Information.
- Replace SOURCERECORDID with the value from control/sourcerecordid of the PNX to be deleted.
- (Optional) To delete additional records
- Copy everything between the lines that start with the phrase "Copy everything."
- Paste what was copied above the line that starts with the phrase "Copy everything above this line."
- Replace SOURCERECORDID_2 with the value from control/sourcerecordid from another PNX record to be deleted
- Replace all instances of YYYY-MM-DD with the current year, month, and day.
- After creating the file, zip (compress) the file into the Harvesting File Format selected on "Define Pipe" screen for the pipe (tar.gz,.zip, etc.)
- Go to Primo Back Office, update the Pipe configuration to COPY method, and harvest the zipped file created in Step 5.
- Run indexing_and_hotswapping job, so the record is physically removed from Primo Front End and database.
- Check results in PNX viewer and Front End to verify the records are deleted.
Additional Information
The template will only work for Data Sources that use the OAI or Static OAI File Splitter. For different data source, using a different File Splitter other than OAI, please open a case for support.
See also Removing deleted ALEPH records from Primo
Delete Record Template
<?xml version="1.0" encoding="UTF-8"?> <OAI-PMH xmlns="http://www.openarchives.org/OAI/2.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/ http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd"> <ListRecords xmlns=""> <record> <header status="deleted"> <identifier>SOURCERECORDID</identifier> <datestamp>YYYY-MM-DD</datestamp> </header> <metadata/> </record> <!-- Copy everything below this line to delete additional records <record> <header status="deleted"> <identifier>SOURCERECORID_2</identifier> <datestamp>YYYY-MM-DD</datestamp> </header> <metadata/> </record> Copy everything above this line to delete additional records --> </ListRecords> </OAI-PMH>
- Article last edited: 09-Aug-2018