Delete book
Deletes an existing book from the Catalog.
/api/v1/books/{id}DeleteBook soft-deletes an existing book listing in Catalog APIServicev1.0.0Catalog APIInternal HTTP and gRPC service for Catalog product management, hybrid
discovery, and authoritative book metadata.
PublishesBookUpdatedRatingFailedIntegrationEventSubscribesCreatePublisher, UpdatePublisher +24APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docs (DELETE /catalog/api/v1/books/{id}) and returns 204 No Content. It does not permanently erase the database row or delete the book’s cover image from blob storage.
Overview
| Property | Value |
|---|---|
| Bounded Context | Catalog |
| Owner Service | Catalog APIServicev1.0.0Catalog APIInternal HTTP and gRPC service for Catalog product management, hybrid discovery, and authoritative book metadata. PublishesBookUpdatedRatingFailedIntegrationEventSubscribesCreatePublisher, UpdatePublisher +24APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docs |
| Protocol / Format | HTTP DELETE, path parameter only, empty response (204 No Content) |
| Gateway Endpoint | DELETE /catalog/api/v1/books/{id} (service path /api/v1/books/{id}) |
| Authentication & Authorization | Microsoft Entra ID JWT — business_user policy (role business_user or admin and scopes catalog_read, catalog_write) |
| Idempotency / Concurrency | Not idempotent across retries; repeating a completed delete returns 404 Not Found; no x-request-id header is enforced |
| Rate Limit / Caching | Global concurrency (100) and fixed-window (30 req/min) limiters plus per-user token bucket; invalidates book, summary, list, and search caches |
| Contract Version | 1.0.0 (ApiVersions.V1) |
Request & Response Contract
Path Parameters
| Name | Type | Required | Constraints | Description |
|---|---|---|---|---|
id | string (uuid) | Yes | Valid UUID | Unique identifier of the book to soft-delete |
Behavior & Side Effects
- Soft delete: Marks the BookEntityv1.0.0BookCanonical sellable title in the product catalog, encapsulating descriptive metadata, pricing, stock availability, taxono...Ownercatalog-experience-teamOpen docs as deleted (
is_deleted = true), hiding it from standard catalog reads and subsequentDELETEcalls. - Cover image retention: Any cover image stored in
catalog-blobremains in blob storage after a book is soft-deleted. - Cache invalidation: Clears cached book details (
book:{id}), book summary (book:summary:{id}), and invalidatesbooks:listandbooks:searchcache tags. - Vector index queueing: Database triggers enqueue the book ID for asynchronous Qdrant vector index reconciliation by Catalog IngestionServicev1.0.0Catalog IngestionInternal background worker that reads pending Catalog book updates and synchronizes semantic search vectors in Qdrant. SubscribesProcessVectorBatchIntegrationEventOwnercatalog-experience-teamDiagramRepositoryOpen docs.
Error Responses
| Status / Code | Condition | Client Recovery Action |
|---|---|---|
400 Bad Request | {id} is not a valid UUID | Fix the path parameter; do not retry unchanged |
401 Unauthorized | Missing, expired, or invalid Entra ID JWT | Acquire a valid Entra ID access token and retry |
403 Forbidden | Token lacks role business_user or admin, or lacks scopes catalog_read and catalog_write | Request the required Entra ID app role and scopes |
404 Not Found | No active book exists with the supplied {id} | Verify the UUID; treat as already deleted only if your workflow allows it |
429 Too Many Requests | Rate limit quota exceeded (Retry-After header included) | Wait for the Retry-After interval before retrying |
500 Internal Server Error | Unhandled server or database failure (traceId included) | Inspect service logs using traceId |
Related Documentation
- Catalog APIServicev1.0.0Catalog APIInternal HTTP and gRPC service for Catalog product management, hybrid discovery, and authoritative book metadata. PublishesBookUpdatedRatingFailedIntegrationEventSubscribesCreatePublisher, UpdatePublisher +24APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docs — Service overview, routing, and authorization policies.
- BookEntityv1.0.0BookCanonical sellable title in the product catalog, encapsulating descriptive metadata, pricing, stock availability, taxono...Ownercatalog-experience-teamOpen docs — Book entity model.
- Create bookCommandv1.0.0Create bookCreates a book listing and returns its generated UUID.Ownercatalog-experience-teamSchemaDiagramOpen docs — Create a new book listing.
- Update bookCommandv1.0.0Update bookUpdates an existing book listing, including optional image and catalog relationships.Ownercatalog-experience-teamSchemaDiagramOpen docs — Replace book details and manage cover images.
Delete book schema
Path identifier for the book to delete.
Schema does not contain any properties.