def delete_image(self, image_id):
        """Delete a specific image by its ID."""
        if not image_id:
            raise ValueError("Image ID is required to delete a image.")
        try:
            image = self.collection.get_image(image_id)
            if not image:
                raise ValueError(
                    f"Image with ID {image_id} not found in collection {self.collection.id}."
                )

            image.delete()
            return {
                "success": True,
                "message": f"Image {image_id} deleted successfully",
            }
        except ValueError as ve:
            logging.error(f"ValueError while deleting video: {ve}")
            raise ve
        except Exception as e:
            logging.exception(
                f"Unexpected error occurred while deleting video {image_id}"
            )
            raise Exception(
                "An unexpected error occurred while deleting the video. Please try again later."
            )
Delete a specific image by its ID.
backend/director/tools/videodb_tool.py