for i in range(len(dicts)):
    if dicts[i].get('id') == 2:
        del dicts[i]