DeleteEntries function