N8N Tools VK icon

N8N Tools VK

Interact with VKontakte API

Photos → Delete Album

AI-generated

Overview

This node integrates with the VKontakte (VK) API, a popular Russian social media platform, to perform various actions on different VK resources. Specifically for the Photos resource and the Delete Album operation, the node allows users to delete a photo album from their VK account.

Common scenarios where this node is beneficial include:

  • Automating the management of photo albums by removing outdated or unwanted albums.
  • Integrating VK photo album deletion into larger workflows, such as cleaning up content after an event or campaign.
  • Managing user-generated content in applications that synchronize with VK.

Example use case:

  • A social media manager wants to automatically delete specific photo albums after a promotional period ends. This node can be configured to delete those albums based on input parameters.

Properties

Name Meaning
Count Number of items to return. Used for pagination when listing items (not directly for delete).
Offset Offset for pagination. Used for skipping items when listing (not directly for delete).

Note: For the Delete Album operation, the key property used is albumId (not listed in the provided properties JSON but referenced in the code), which specifies the ID of the album to delete.

Output

The output of the node is a JSON object representing the response from the VK API after attempting to delete the specified photo album. Typically, this will include a success confirmation or error details if the deletion failed.

The structure generally looks like:

{
  "response": 1
}

where "response": 1 indicates successful deletion.

No binary data output is involved in this operation.

Dependencies

  • Requires an API authentication token credential to access the VKontakte API.
  • The node uses the VK API base URL https://api.vk.com/method.
  • No additional external dependencies beyond the VK API and proper OAuth2 credentials are required.

Troubleshooting

  • Common issues:

    • Invalid or missing albumId: The node requires a valid album ID to delete. Ensure the correct album ID is provided.
    • Insufficient permissions: The API token must have rights to manage photos/albums for the target user or group.
    • Network or API errors: Temporary connectivity issues or VK API rate limits may cause failures.
  • Error messages:

    • "Unknown operation: deleteAlbum": Indicates the operation name was not recognized; ensure the operation parameter is exactly "deleteAlbum".
    • API error responses typically include error codes and messages from VK API; check these for permission or parameter issues.
  • Resolution tips:

    • Verify the album ID exists and belongs to the authenticated user.
    • Confirm the API token has necessary scopes/permissions.
    • Handle errors gracefully using the node's "Continue On Fail" option if available.

Links and References

Discussion