helper function to delete all fetched pi