If you’ve used prior versions of DEVONthink and created new records inside a tag and didn’t replicate those records afterwards into normal groups then those records would be deleted when you delete the tag.
If that’s the case then use this script which makes sure that all records exist in normal groups.
The linked post is part of a thread that explains how deleting tags works.