added function to delete dictionaries from list