Actions88
- Blog Actions
- Get All Posts (Admin)
- Get Post (Admin)
- Create Post (Admin)
- Update Post (Admin)
- Delete Post (Admin)
- Get Categories (Admin)
- Get Category (Admin)
- Create Category (Admin)
- Update Category (Admin)
- Delete Category (Admin)
- Get Tags (Admin)
- Get Tag (Admin)
- Create Tag (Admin)
- Update Tag (Admin)
- Delete Tag (Admin)
- Get Authors (Admin)
- Get All Posts (Public)
- Get Post (Public)
- Get Categories (Public)
- Get Tags (Public)
- Get Posts by Category (Public)
- Get Posts by Tag (Public)
- Section Actions
- AI Resource Actions
- Authentication Actions
- User Actions
- Course Actions
- Lecture Actions
- Enrollment Actions
- Learning Path Actions
- Assignment Actions
- Progress Actions
- Video Actions
- Article Actions
- Quiz Question Actions
- Quiz Choice Actions
- Quiz Submission Actions
- Image Actions
Overview
This node integrates with the Lectful API to manage various resources related to online courses, users, content, and more. Specifically for the Image - Delete operation, it allows you to delete an image resource by its ID from the Lectful platform.
Common scenarios where this node is beneficial include:
- Automating cleanup of unused or outdated images in your course content.
- Managing media assets programmatically as part of a larger workflow (e.g., deleting images after course updates).
- Integrating image management into custom workflows without manual intervention.
Example use case:
- You have a workflow that processes course content updates and removes obsolete images automatically by deleting them via this node.
Properties
| Name | Meaning |
|---|---|
| Authentication Mode | Choose how to authenticate with the Lectful API: - Use Stored Credentials - Manual Configuration (provide Base URL and API key manually) |
| Credentials Note | Notice shown when using Manual Configuration mode explaining credential overrides. |
| Base URL Override | Optional base URL to override the stored credential's base URL (without /api/v1). |
| API Key Override | Optional API key to override the stored credential's API key. |
| Image ID | The unique identifier of the image to delete. This is required for the delete operation. |
Output
The node outputs a JSON object representing the API response from the Lectful server after attempting to delete the specified image. Typically, this will be a confirmation of deletion or an error message if the deletion failed.
- The output is structured as an array of items, each containing a
jsonproperty with the API response. - No binary data is output by this operation.
Example output JSON structure on success might look like:
{
"message": "Image deleted successfully",
"id": "12345"
}
Or on failure:
{
"error": "Image not found"
}
Dependencies
- Requires access to the Lectful API.
- Requires either stored credentials configured in n8n or manual entry of Base URL and API key.
- The API key must have permissions to delete images.
- No additional external dependencies beyond standard HTTP requests.
Troubleshooting
Missing or invalid credentials:
Error: "Valid credentials are required..."
Solution: Ensure you have configured valid Lectful API credentials in n8n or provide correct Base URL and API key manually.Missing Image ID:
Error occurs if the Image ID parameter is empty or invalid.
Solution: Provide a valid Image ID of the image you want to delete.API errors such as "Image not found" or permission denied:
Solution: Verify the Image ID exists and the API key has sufficient permissions.Network or connectivity issues:
Solution: Check network connection and Lectful API availability.Using Manual Configuration but missing Base URL or API key:
Error: "Base URL Override is required..." or "API Key Override is required..."
Solution: Provide both Base URL Override and API Key Override parameters.
Links and References
- Lectful API Documentation (generic link, replace with actual if available)
- n8n Documentation on HTTP Request Node for understanding API calls
- n8n Credential Management Guide for setting up API keys
This summary covers the logic and usage of the Lectful node's Image Delete operation based on static analysis of the source code and provided properties.