Hi Tullio! Do you need to save the changes?
eg. something like: Content c = ((MgnlUser)user).getUserNode(); Content p = c.getParent(); c.delete(); p.save(); Just a thought, don't know if it helps... Regards from Vienna, Richard -----Ursprüngliche Nachricht----- Von: [email protected] [mailto:[email protected]] Im Auftrag von Tullio Bettinazzi Gesendet: Mittwoch, 16. Februar 2011 16:49 An: [email protected] Betreff: [magnolia-user] I'm not able to delete users 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]> ---------------------------------------------------------------- ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
