{
ctx = initialiseContext();
// Delete the role entry itself
String roleDN = String.format("%s=%s,%s", getRoleNameAttribute(), role, getRoleContextDN() );
ctx.destroySubcontext(roleDN);
// Then delete all user attributes that point to this role
int searchScope = SearchControls.SUBTREE_SCOPE;
int searchTimeLimit = 10000;