in reply to How to delete a GDBM entry?

Although you can use delete to remove an entry from your %hash, this won't free up any space in your GDBM file automatically.

Look for gdbm_reorganize in GDBM's documentation. If you don't call this function, your file will continually grow.

For more details, look for reorganize on this page.