I have a Plonesite 5.1.5, formerly plone.app.imagecropping was installed. The AddOn is uninstalled, but available in the Filesystem. But all my Image DX Types Object still implements the Interfaces
(Pdb++) IImageCroppingDX.providedBy(obj)
True
(Pdb++) IImageCroppingMarker.providedBy(obj)
True
I think it comes from this ZCML-Snippet from the plone.app.imagecropping AddOn
<!-- plone.app.imagecropping/configure.zcml -->
<class class="plone.app.contenttypes.content.Image">
<implements interface=".dx.IImageCroppingDX" />
</class>
Now i would like remove the interfaces via
(Pdb++) from zope.interface.declarations import noLongerProvides
(Pdb++) from plone.app.imagecropping.dx import IImageCroppingDX
(Pdb++) from plone.app.imagecropping.interfaces import IImageCroppingMarker
(Pdb++) noLongerProvides(obj, IImageCroppingDX)
*** ValueError: Can only remove directly provided interfaces.
Question: How can I remove the unused Interfaces on every Object?