# Manage orphanedItemStrategy for all the job in the instance

**URL:** <https://community.jenkins.io/t/manage-orphaneditemstrategy-for-all-the-job-in-the-instance/1444>\
**Category:** Ask a question\
**Tags:** question\
**Created:** [February 7, 2022, 1:59pm UTC](https://community.jenkins.io/t/manage-orphaneditemstrategy-for-all-the-job-in-the-instance/1444 "2022-02-07T13:59:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vincent](https://avatars.discourse-cdn.com/v4/letter/v/e9bcb4/32.png) [@Vincent](https://community.jenkins.io/u/Vincent)\
**Post date:** [February 7, 2022, 1:59pm UTC](https://community.jenkins.io/t/manage-orphaneditemstrategy-for-all-the-job-in-the-instance/1444/1 "2022-02-07T13:59:26Z")

</div>

Hello,

I’m searching for a way to manage “Orphaned Item Strategy” for all the job in my jenkins instance.

Actually i’m thinking of a script that will check all the config.xml and add the bloc under with a for/sed etc.

```auto
<orphanedItemStrategy class="com.cloudbees.hudson.plugins.folder.computed.DefaultOrphanedItemStrategy" plugin="cloudbees-folder@6.15">
    <pruneDeadBranches>true</pruneDeadBranches>
    <daysToKeep>5</daysToKeep>
    <numToKeep>5</numToKeep>
</orphanedItemStrategy>

```

Finally my question : is there a way to do that in the IHM for all the job plz ?

Thanks for your help !

Best regards,  
Vincent
