<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div id="yui_3_16_0_1_1496622528124_2686">Hi</div><div id="yui_3_16_0_1_1496622528124_2686">I accomplished this by running a bulk-action with following definition to delete users with projection of target resource.</div><div id="yui_3_16_0_1_1496622528124_2686"><span style="color: rgb(69, 69, 69); font-family: "Helvetica Neue"; font-size: 12px;"><br></span></div><div id="yui_3_16_0_1_1496622528124_2686"><span style="color: rgb(69, 69, 69); font-family: "Helvetica Neue"; font-size: 12px;" id="yui_3_16_0_1_1496622528124_4451"><s:search xmlns:s="http://midpoint.evolveum.com/xml/ns/public/model/scripting-3"</span></div>








<div id="yui_3_16_0_1_1496622528124_4452">          xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"</div>
<div id="yui_3_16_0_1_1496622528124_4453">          xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3"></div>
<div id="yui_3_16_0_1_1496622528124_4454">    <s:type>UserType</s:type></div>
<div id="yui_3_16_0_1_1496622528124_4455">    <s:searchFilter></div>
<div id="yui_3_16_0_1_1496622528124_4456">        <q:ref></div>
<div id="yui_3_16_0_1_1496622528124_4457"><span id="yui_3_16_0_1_1496622528124_4458">   </span>    <q:path>linkRef/@/resourceRef</q:path></div>
<div id="yui_3_16_0_1_1496622528124_4459">            <q:value oid="XXXXXXX"/></div>
<div id="yui_3_16_0_1_1496622528124_4460">        </q:ref></div>
<div id="yui_3_16_0_1_1496622528124_4461">    </s:searchFilter></div>
<div id="yui_3_16_0_1_1496622528124_4462">    <s:action></div>
<div id="yui_3_16_0_1_1496622528124_4463">        <s:type>delete</s:type></div>
<div id="yui_3_16_0_1_1496622528124_4464">    </s:action></div>
<div dir="ltr" id="yui_3_16_0_1_1496622528124_4465"></s:search></div><div id="yui_3_16_0_1_1496622528124_2686"><br></div><div id="yui_3_16_0_1_1496622528124_2686">This may not be ideal one because i had to execute the repeatedly to delete all the accounts.</div><div id="yui_3_16_0_1_1496622528124_2686"><br></div><div id="yui_3_16_0_1_1496622528124_2686">Thanks,</div><div id="yui_3_16_0_1_1496622528124_2686">Prabhakar.</div></div></body></html>