Added deleteOrphanedEntries() method to basic API