Over the years, a number of users have raised issues because empty groups get removed after being created. This was never a bug and is because groups do not exist in their own right within a Password Safe database. The group structure is rebuilt and shown in the Tree view whenever the database is read in or re-read and is solely created on the fly by using the "Group" field of the entries within the database. As there are no entries within a newly added group, the empty group can't be recreated when the Tree view is refreshed e.g. after saving or restoring after being locked.
This Feature Requesthas been raised to track the changes necessary to the Password Safe database structure in order to save empty group names within it so that they are not lost whenever the database is read in or refreshed. They will also be able to be exported and then import (XML format only).