Actions37
- 👥 Сбор аудитории Actions
- 📝 Постинг контента Actions
- ❤️ Взаимодействия Actions
- 💬 Сообщения Actions
- 🔧 Утилиты Actions
❤️ Взаимодействия → Удалить из друзей
AI-generatedSummary
Removes a user from the authenticated VK account's friends list (or declines/cancels a friend request) by calling the VK API method friends.delete once per input item.
Inputs
- dataSource — Where the user ID comes from: 'manual' (default) uses the ID typed into the node; 'input' reads it from the incoming item's JSON.
- userIdField — Shown when dataSource is 'input'. Name of the field in the incoming item's JSON holding the user ID (default 'id'). The node throws an error if the field is missing or null.
- userId (required) — Shown when dataSource is 'manual'. Numeric VK ID of the user to remove from friends (default 0).
Output shape
One item per input item: a JSON object with user_id (the ID that was sent) merged with the fields of VK's friends.delete response.
VK's response is typically an object with flags such as success, friend_deleted, out_request_deleted, in_request_deleted, suggestion_deleted. These come from VK's response and are not defined in the node. A VK API error throws an error with the code and a hint. With 'Continue on Fail' enabled, an item with an 'error' message is output instead. Each output is paired to its input item.
Examples
Example 1: Remove a specific friend by ID
Data source: Manually; User ID: 123456789
Example 2: Clean up a list of users coming from a previous node, such as the Friends List operation
Data source: From input data; User ID field: id