Batch delete items in DSpace 4

185 views
Skip to first unread message

Gary Browne

unread,
Jun 20, 2017, 7:47:55 PM6/20/17
to DSpace Technical Support
Hi all,

A seemingly simple task - I want to delete some items from DSpace 4.1 (Tomcat7, RHEL 6, Apache 2.2) based on matching values in a custom metadata field.

Really I've searched a lot on Googs and Duraspace but cannot find any examples. I'm reluctant to do a SQL delete of an item without checking here first, as I don't know what the knock-on effects might be and what cleanup might need to be done. Would SQL be the best tool here or REST API or wildcard tool? In some cases there are up to 2000 records matching a particular value that need to be deleted, so I don't want to do it by hand.

Any guidance/references would be much appreciated.

Thanks,
Gary

Àlex Magaz Graça

unread,
Jun 21, 2017, 2:54:07 AM6/21/17
to Gary Browne, DSpace Technical Support
El 21/06/17 a las 01:47, Gary Browne escribió:
> --
> You received this message because you are subscribed to the Google
> Groups "DSpace Technical Support" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to dspace-tech...@googlegroups.com
> <mailto:dspace-tech...@googlegroups.com>.
> To post to this group, send email to dspac...@googlegroups.com
> <mailto:dspac...@googlegroups.com>.
> Visit this group at https://groups.google.com/group/dspace-tech.
> For more options, visit https://groups.google.com/d/optout.
Hi Gary,

The easier way would be to use the batch metadata editing feature. See here:

https://wiki.duraspace.org/display/DSDOC4x/Batch+Metadata+Editing#BatchMetadataEditing-Performing%27actions%27onitems

Cheers,
Àlex

Gary Browne

unread,
Jun 21, 2017, 10:08:28 PM6/21/17
to DSpace Technical Support
Hi Àlex,

Great – I wasn’t aware that you could delete items with this system. As the name suggests, I thought it was only for “metadata editing”!

Thanks a lot,
Gary


Gary Browne | Technical Manager, Developments
Online Services
University of Sydney Library
THE UNIVERSITY OF SYDNEY
Level 1, Fisher Library F03, The University of Sydney NSW 2006
T +61 2 9351 5946 | M +61 405 647 868
E gary....@sydney.edu.au <https://webmail.sydney.edu.au/owa/redir.aspx?C=OXYu29eFmlOiJviVN3CHunM5oGoASVvNNYb-H0ZnmZGiO6bY9qPUCA..&URL=mailto%3agary.browne%40sydney.edu.au>
Sent from my plain old desktop computer
You received this message because you are subscribed to a topic in the Google Groups "DSpace Technical Support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dspace-tech/-QzFpTcbo4U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dspace-tech...@googlegroups.com.
To post to this group, send email to dspac...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages