I tried to delete some user by code but I failed.
Delete seems to work (no errors) but the user is still there.
What's wrong ?
Tks
Tullio

        public static void deleteUser(String xpName) {
                User user = getUser(xpName);
                if(user != null) {
                        try {
                                user.setEnabled(false);
                                ((MgnlUser)user).getUserNode().delete();
                        } catch (RepositoryException ex) {
                                LogUtils.logError(ex);
                        }       
                }
        }
-- 
View this message in context: 
http://old.nabble.com/I%27m-not-able-to-delete-users-tp30936643p30936643.html
Sent from the Magnolia - User mailing list archive at Nabble.com.



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to