Hi Euler,
You can REST api for your goal. A script including:
GET /collections/{collectionId}/items
GET /items/{item id}/bitstreams
DELETE /items/{item id}/bitstreams/{bitstream id}

Best Regards,
Fatih

On Tuesday, June 9, 2020 at 3:47:23 AM UTC+3, euler wrote:
>
> Dear All,
>
> I have posted this query in SO [1] but so far I have no responses so I'll 
> try my luck here. I would like to ask how to batch delete bitstreams that 
> are in the Bundle: THUMBNAIL. Would it also be possible to only limit the 
> deletion within a specific community or collection? Since there are 
> collections that I have manually added the thumbnails and I don't want them 
> to be deleted. In this regard, I am also asking if it is also possible to 
> limit the deletion only for those with the description: IM Thumbnail.
>
> So to recap, below are my specific conditions:
>
>
>    - Delete all thumbnails within a specific community/collection
>    - Delete all thumbnails within a specific community/collection only if 
>    it contains the description "IM Thumbnail"
>
> Please note that I am aware of the --force flag in filter-media to 
> regenerate the thumbnail but this will not work for manually added 
> thumbnails. I have also items that have no ORIGINAL bundle but I have 
> manually added the thumbnail so the --force flag is not applicable.
>
> Thanks in advance and best regards,
> Euler
>
> [1] https://stackoverflow.com/q/62231755/1919069
>

-- 
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
--- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/48b2c3a1-2329-4082-aa82-e3649de08daco%40googlegroups.com.

Reply via email to