Azure OpenAI by YOOV icon

Azure OpenAI by YOOV

Interact with Azure OpenAI API, powered by YOOV

Actions7

Overview

The Image: Delete operation in the "Azure OpenAI by YOOV" n8n node allows users to delete a previously generated image from Azure OpenAI's image generation service. This is useful for managing storage, privacy, or compliance by removing images that are no longer needed or were created in error.

Common scenarios:

  • Automatically cleaning up generated images after processing.
  • Removing sensitive or unwanted images from the Azure OpenAI workspace.
  • Integrating with workflows where image lifecycle management is required.

Practical example:
After generating an image using Azure OpenAI and processing it (e.g., sending it via email), you can use this operation to delete the image from the service to ensure it is not stored unnecessarily.

Properties

Name Meaning
API Version The version of the Azure OpenAI API to use. Only option: 2023-06-01-preview.
Operation ID The GUID that identifies the original image generation request. Used to specify which image to delete.

Output

The output will be a JSON object reflecting the response from the Azure OpenAI API after attempting to delete the specified image. The structure typically includes status information about the deletion request. If an error occurs and "Continue On Fail" is enabled, the output will include an error field with the error message.

Example output:

{
  "status": "succeeded",
  "id": "operation-guid",
  "created": "timestamp",
  // ...other fields as returned by the API
}

Or, on error (with Continue On Fail):

{
  "error": "Error message describing what went wrong"
}

Dependencies

  • External Service: Requires access to Azure OpenAI services.
  • API Key/Credentials: Needs valid Azure OpenAI credentials configured in n8n under the name yoovAzureOpenAIApi.
  • Environment Variable: The base URL (hostname) for the Azure OpenAI endpoint must be set in the credentials.

Troubleshooting

Common issues:

  • Invalid Operation ID: If the provided Operation ID does not exist or has already been deleted, the API may return a "not found" or similar error.
  • Authentication Errors: Missing or incorrect credentials will result in authentication failures.
  • API Version Mismatch: Using an unsupported API version will cause the request to fail.

Common error messages:

  • "Resource not found": Check that the Operation ID is correct and refers to an existing image generation request.
  • "Unauthorized" or "Invalid credentials": Ensure your Azure OpenAI credentials are correctly configured in n8n.
  • "API version not supported": Make sure you are using the supported API version (2023-06-01-preview).

Links and References

Discussion