I am not sure. There is a bmap_purge(bmap); function in the manual, but it says it's for C-Script.

Under ent_purge(ENTITY*); it says it releases texture memory, so it probably should not retain texture memory. I am just starting to use these commands myself, and I'm having similar issues where memory continues to pile up as I load new entities...