Skip to content

DELETE Image Endpoint

goldy4719 edited this page Apr 10, 2026 · 1 revision

DELETE /image/{imageId}

Overview

Validates the image’s UUID and then deletes the image and corresponding metadata from S3 and DynamoDB.

Prerequisites

  • Valid JWT token

Implementation / Steps

  1. Extract the authenticated user_id.
  2. Delete the image file from S3.
  3. Delete the corresponding metadata from DynamoDB.
  4. Return the deletion result.

Key Takeaways

  • No rollback mechanism exists between S3 and DynamoDB.
  • Consistent key structure is required for S3 objects.

Clone this wiki locally