[Zope] How do you delete an object that cannot be seen in the ZMI

Dieter Maurer dieter@handshake.de
Fri, 11 Jul 2003 20:33:36 +0200


Michael Long wrote at 2003-7-10 17:27 -0400:
 > I have created an object in the ZODB that I cannot see in the ZMI and
 > now don't know how to remove it. More importantly I would like to
 > understand what I did so as not to do it again. I am sure more info is
 > needed to track down the problem but I don't know what it would be.
 > 
 > A brief explanation of what I am trying to accomplish. I am creating a
 > folderish object with its id be autogenerated. Inside of this new object
 > I want to create another folderish object with an id = 'Invoices'.
 > ...
 >  Module OFS.ObjectManager, line 77, in checkValidId
 > Bad Request: The id "Invoices" is invalid--it is already in use. 

"Invoices" is either an instance or a class attribute.

You can delete an instance attribute with "delattr(instance,name)" (
only in trusted Python code). To remove a class attribute, you
must remove it in the source, as otherwise it will be recreated
when Zope starts for the next time.


Dieter