Hi! I have implemented my custom content type (panels pane) and in settings I have a form where I have a managed file element.

I would like to delete the managed file when the pane gets removed, how can I do that? I didn't find any hooks to do that?

Comments

merlinofchaos’s picture

There is no way to reliably tell if a pane was deleted, because you can't tell the difference between deleting and exporting. Unfortunately this is something that can really only be done manually.

imiksu’s picture

Thank you for responding :)

That is very sad. Any suggestion then how to handle file deletion? o.O

Ashlar’s picture

Status: Active » Closed (works as designed)