cancel
Showing results for 
Search instead for 
Did you mean: 

Deleting badly-formed folders.

bdmc
Champ in-the-making
Champ in-the-making
I have a problem, created when I tried to use the CMIS API to Create Sites.

I now have several items ( directories – folders ) under /Sites, that I can not seem to delete.

I go into the Repository Browser, select an item, either by checking the box, or going to the right-hand menu, and try to delete.  It asks whether I really want to do that, and I say "yes."  It then comes back and says that that can not be done.

Is there a better way to delete these folders?  One that actually works?

I don't really want to rebuild the installation from scratch.


Thanks,
Brian
2 REPLIES 2

parashiftaustra
Confirmed Champ
Confirmed Champ
I have two suggestions:
1. Use the Site Services API in Share with a RESTful client to delete the folders.
2. Remove the sys:undeletable aspect and then try deleting again. This Aspect is not visible from the Share front end by default, so you will need to include it in share-config-custom as an editable aspect. Add the following snippet to share-config-custom.xml:

<config evaluator="string-compare" condition="DocumentLibrary">

<aspects>
<!– Aspects that a user can see –>
<visible>
<aspect name="sys:undeletable" />
</visible>
</aspects>

</config>

bdmc
Champ in-the-making
Champ in-the-making
Thank you, Peter.

I was lead ( or led ) to the Javascript Console, and shown how to correct things there.  Interesting tool.


Brian