Actions32
- Campaign Actions
- List Actions
- Media Actions
- Setting Actions
- Subscriber Actions
- Template Actions
- Transaction Actions
Media → Delete Media by ID
AI-generatedOverview
The node provides integration with a listmonk instance, a platform for email marketing and newsletter management. Specifically, the "Delete Media by ID" operation under the "Media" resource allows users to delete a media object from the listmonk system by specifying its unique identifier. This is useful for managing and cleaning up media assets such as images or files that are no longer needed in campaigns or templates.
Practical examples include:
- Removing outdated or incorrect images used in newsletters.
- Cleaning up unused media files to save storage space.
- Automating media lifecycle management within marketing workflows.
Properties
| Name | Meaning |
|---|---|
| ID | The unique identifier of the media object 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 media item. It may include success confirmation or error details if the deletion failed. There is no indication that binary data is returned by this operation.
Dependencies
- Requires connection to a listmonk instance via an API endpoint.
- Needs credentials including domain URL, username, and password for basic authentication.
- The node expects the base URL to be configured without trailing slashes; it appends
/apiautomatically. - Proper permissions on the listmonk server to delete media objects.
Troubleshooting
- Invalid ID: If the provided ID is not a valid number or does not correspond to an existing media object, the API will likely return an error. Ensure the ID is correct and exists.
- Authentication errors: Incorrect credentials or insufficient permissions will cause authorization failures. Verify API credentials and user rights.
- Network issues: Connectivity problems to the listmonk server will prevent the operation from completing.
- API endpoint misconfiguration: Ensure the domain URL is correctly set without trailing slashes, as the node appends
/apiautomatically.
Links and References
- listmonk Official Documentation
- listmonk API Reference (for details on media endpoints)