Remove all docked items from a panel in ExtJS

extjs

Solution

If you'd look into the code of the `removeAll` function you can see it calls the `remove` function. You can create your own `removeAllDocked` function witch will use `removeDocked`.

Problem

I'm new to Sencha ExtJS and trying to figure out how to efficiently remove all docked items from a panel. The official reference mentions the methods `removeAll` (which only removes regular items and seems unfit for my purpose) and `removeDocked` (which removes only one docked item). Any ideas?

Original source