Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 465 Bytes

README.md

File metadata and controls

11 lines (8 loc) · 465 Bytes

fcrepo3_utility_scripts

Python scripts for manipulating Fedora Commons 3 content via its REST API

purge_ds_versions.py

Script for deleting older versions of specified datastream IDs from Fedora Commons 3.x

Requirements: Python 3 with requests and lxml modules

Usage:
purge_ds_versions.py -r islandora:root -d POLICY,RELS-EXT -k 2
keep the 2 most recent versions of the POLICY and RELS-EXT datastreams for all objects in the islandora:root collection