Listmonk icon

Listmonk

Interact with a listmonk instance for email marketing and newsletter management. Supports creating subscribers, managing campaigns, sending emails, and more.

Campaign → Delete

AI-generated

Overview

The node integrates with a Listmonk instance, a platform for email marketing and newsletter management. Specifically, the "Delete Campaign" operation allows users to remove an existing campaign from their Listmonk account by specifying its unique ID. This is useful for cleaning up outdated or test campaigns, managing active marketing efforts, or automating campaign lifecycle management.

Practical examples include:

  • Automatically deleting campaigns that have expired or are no longer relevant.
  • Removing test campaigns created during development or QA processes.
  • Managing campaign clutter by programmatically deleting campaigns based on certain criteria.

Properties

Name Meaning
ID The unique identifier of the campaign to delete. Must be a valid number.

Output

The output JSON typically contains the response from the Listmonk API confirming the deletion status of the specified campaign. It may include success confirmation or error details if the deletion failed. There is no indication that binary data is returned in this operation.

Dependencies

  • Requires connection to a Listmonk instance via its REST API.
  • Needs an API authentication credential consisting of a domain URL, username, and password.
  • The base URL for requests is constructed from the provided domain credential.
  • The node uses HTTP Basic Authentication with the supplied username and password.

Troubleshooting

  • Invalid ID: If the provided campaign ID does not exist or is invalid, the API will likely return an error indicating the campaign was not found. Verify the ID before attempting deletion.
  • Authentication errors: Incorrect credentials or insufficient permissions will cause authentication failures. Ensure the API user has rights to delete campaigns.
  • Network issues: Connectivity problems to the Listmonk server will prevent the operation from completing.
  • API changes: If the Listmonk API changes, the node might fail; ensure compatibility with the current API version.

Links and References

Discussion