Mira Library Delete

Delete a library from Mira App Server

Mira Library Delete

AI-generated

Overview

This node deletes a library from the Mira App Server permanently. It is useful when you want to remove an entire library and all its associated data from the system, for example, cleaning up unused or obsolete libraries to maintain an organized environment.

A practical scenario would be automating the removal of libraries that are no longer needed after a project ends, ensuring no residual data remains on the server.

Properties

Name Meaning
⚠️ Warning: This action will permanently delete the library and all its data! A notice warning users about the irreversible deletion action.
Library ID The unique identifier of the library to delete. This is a required string input.

Output

The node outputs a JSON object with the following structure:

  • deleted: A boolean indicating if the deletion was successful (true).
  • libraryId: The ID of the deleted library.
  • response: The raw response returned by the Mira API after the delete request.
  • timestamp: The ISO string timestamp when the deletion occurred.
  • operation: The string "delete" indicating the performed operation.

No binary data output is produced by this node.

Dependencies

  • Requires an API key credential for authenticating requests to the Mira App Server.
  • Uses Mira's REST API endpoint /api/libraries/{libraryId} with HTTP DELETE method.
  • The node depends on n8n's HTTP request helper methods to perform authenticated API calls.

Troubleshooting

  • Missing or invalid Library ID: If the "Library ID" parameter is empty or incorrect, the node will throw an error. Ensure the correct library ID is provided.
  • Authentication errors: If the API key credential is missing or invalid, the HTTP request will fail. Verify the API key configuration.
  • API endpoint errors: If the library does not exist or the server returns an error, the node will propagate the error message. Check the library ID validity and server status.
  • Irreversible action warning: Users should be cautious as this action permanently deletes data; accidental deletions cannot be undone.

Links and References

  • Mira App Server API documentation (for library management endpoints)
  • n8n HTTP Request node documentation (for understanding HTTP authentication and requests)

Discussion