Is there a way to remove a callback from existence

So i have a multipage dash app which shares the same dcc elements to fabricate filters for mi database queries. Since not all the pages use all filters (and some dropdowns hide some elements dynamically) i was wondering if there is a way to remove the callbacks that exists in the current page to avoid having unnecesary callbacks in the page.

1 Like

did you ever figure this out? having a similar problem.

sadly no, we still keep them up

Callbacks are created with the app object and cannot be removed or added at a later stage. What you can do on the other hand is to implement a custom logic inside the callback to take care of the different cases. E.g. the callback could take as argument the value of a dcc.Location element and do something different depending on the url.

1 Like