Скрипт на языке программирования Python. Инструкция Скачать Python, запустить командную строку и написать команду pip3 install vk_api. Открыть скрипт через блокнот и вставить токен от своей страницы. Скачать https://yadi.sk/d/9YDWCoqQttjERA Автор скрипта - https://vk.com/grishagoncharov1 import vk_api from vk_api.longpoll import VkLongPoll, VkEventType def main(): vk_session = vk_api.VkApi(token='токен') #можно узнать не vkhost.github.io api = vk_session.get_api() try: get = api.friends.get(count=1000, fields='deactivated') i = 0 while i < get['count']: try: id = get['items'][i]['id'] if get['items'][i]['deactivated'] == 'banned': api.friends.delete(user_id=id) print(f'{id} был удалён из друзей') i += 1 elif get['items'][i]['deactivated'] == 'deleted': api.friends.delete(user_id=id) print(f'{id} был удалён из друзей') i += 1 except: i += 1 except Exception as error: print(error) main() Code import vk_api from vk_api.longpoll import VkLongPoll, VkEventType def main(): vk_session = vk_api.VkApi(token='токен') #можно узнать не vkhost.github.io api = vk_session.get_api() try: get = api.friends.get(count=1000, fields='deactivated') i = 0 while i < get['count']: try: id = get['items'][i]['id'] if get['items'][i]['deactivated'] == 'banned': api.friends.delete(user_id=id) print(f'{id} был удалён из друзей') i += 1 elif get['items'][i]['deactivated'] == 'deleted': api.friends.delete(user_id=id) print(f'{id} был удалён из друзей') i += 1 except: i += 1 except Exception as error: print(error) main()