Use the ObjectManager API:
app.manage_delObjects(['plone'])
and make sure you commit the transaction, of course.
Zope 2.12 and newer implement the __delitem__
special method and:
del app['plone']
also works.
문제
I want to remove a Plone site from a Zope instance using the debug console. The next code is an example of how it could be.
$ bin/instance debug
>>> del(app.plone)
I think that perhaps a similar functionality exists. How can I do this?
해결책
Use the ObjectManager API:
app.manage_delObjects(['plone'])
and make sure you commit the transaction, of course.
Zope 2.12 and newer implement the __delitem__
special method and:
del app['plone']
also works.