cleanup and parMap for deletes