Remove categories

OpenKM a de nombreuses fonctionnalités interessantes, mais demande un minimum de configuration pour être pleinement exploité.

Moderator: dedisoft

Forum rules
Avant de poser une question, merci de regarder la documentation du wiki ou d'utiliser la fonction recherche du forum. Et rappelez vous que nous n'avons ni boule de cristal ni possibilité de lire dans les pensées, aussi pensez à spécifier quelle version d'OpenKM vous utilisez ainsi que la version du navigateur web et du système d'exploitation. Pour de plus amples informations lisez Comment reporter un bug efficacement (anglais).
Post Reply
welcomeweb
Junior Boarder
Junior Boarder
Posts: 23
Joined: Mon Jun 15, 2015 3:51 pm

Remove categories

Post by welcomeweb » Mon Jan 11, 2016 2:26 pm

Good day,
i would like to know how i can remove categories.
Not on a single document, but in the whole system OpenKM.

Thank you
Best regards
Elena

welcomeweb
Junior Boarder
Junior Boarder
Posts: 23
Joined: Mon Jun 15, 2015 3:51 pm

Re: Remove categories

Post by welcomeweb » Mon Jan 11, 2016 2:37 pm

I don't have any document or folder, but when i try to remove categories i have an error message:
OKM-001009(Delete): Access to folder denied
Cant' delete a category in use
How can I unlock access?

jllort
Moderator
Moderator
Posts: 9119
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Remove categories

Post by jllort » Wed Jan 13, 2016 3:26 pm

This behavior is caused by a feature to ensure data integrity. The problem is that you can not remove categories what are still assigned to an objects ( documents, folders etc... ) first must be removed these relations. For doing it, could create a minimal script, or do a database update, or go to categories view and remove one by one ( I do not know about how many do you have ).

welcomeweb
Junior Boarder
Junior Boarder
Posts: 23
Joined: Mon Jun 15, 2015 3:51 pm

Re: Remove categories

Post by welcomeweb » Fri Jan 15, 2016 7:52 am

Good day,
thank you for your reply.
There is not any document or folder assigned to categories, this is the problem.

Can you write to me some script to resolve my problem.

Thank you

Best regards.
Elena

jllort
Moderator
Moderator
Posts: 9119
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Remove categories

Post by jllort » Sun Jan 17, 2016 11:11 am

Are you administrator ? could be a document assigned hidden to you ( or in trash ).

Go to administration database query and execute ( uuid is the node uuid category folder, you can copy from properties tab when folder is selected ):

Code: Select all

SELECT * FROM OKM_NODE_CATEGORY where NCT_CATEGORY='6a63897f-3476-4d4e-b693-eb48023332f7';

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest