Removes the object IDs from the specified array that are hard referenced in this database object.
Any remaining object IDs can be safely erased. This function does not modify this database object.