Storefront has been decoupled into micro-frontends with a dedicated commerce app and shared shell.

Read the architecture guide →

Delete author

Deletes an existing author from the Catalog.

Catalog Management
DELETE/api/v1/authors/{id}

DeleteAuthor permanently deletes an author record from 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/authors/{id}) and returns 204 No Content. Deletion is rejected with 400 Bad Request when any active book references the author.

Overview

PropertyValue
Bounded ContextCatalog
Owner ServiceCatalog 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 / FormatHTTP DELETE, path parameter only, empty response (204 No Content)
Gateway EndpointDELETE /catalog/api/v1/authors/{id} (service path /api/v1/authors/{id})
Authentication & AuthorizationMicrosoft Entra ID JWT — business_user policy (role business_user or admin and scopes catalog_read, catalog_write)
Idempotency / ConcurrencyNot idempotent across retries; repeating a completed delete returns 404 Not Found; no x-request-id header is enforced
Rate Limit / CachingGlobal concurrency (100) and fixed-window (30 req/min) limiters plus per-user token bucket; invalidates author and book caches
Contract Version1.0.0 (ApiVersions.V1)

Request & Response Contract

Path Parameters

NameTypeRequiredConstraintsDescription
idstring (uuid)YesValid UUID; must not be referenced by any active bookUnique identifier of the author to delete

Behavior & Side Effects

  • Referential integrity guard: Rejects deletion with 400 Bad Request ("Author has books and cannot be deleted") if any active (non-soft-deleted) book references the author.
  • Hard delete: Permanently removes the AuthorEntityv1.0.0AuthorRepresents a credited author of one or more books in the product catalog, enforcing display-name validity and referentia...Ownercatalog-experience-teamOpen docs record (no soft delete). If a soft-deleted book still references the author, the database restrict constraint causes 500 Internal Server Error.
  • Cache invalidation: Clears catalog:authors:v1 and invalidates book and books:list cache tags.
  • Vector index queueing: Database triggers enqueue any linked book IDs for asynchronous vector 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 / CodeConditionClient Recovery Action
400 Bad RequestAuthor is still linked to one or more active books, or {id} is not a valid UUIDReassign or delete linked books first, or fix the UUID; do not retry unchanged
401 UnauthorizedMissing, expired, or invalid Entra ID JWTAcquire a valid Entra ID access token and retry
403 ForbiddenToken lacks role business_user or admin, or lacks scopes catalog_read and catalog_writeRequest the required Entra ID app role and scopes
404 Not FoundNo author exists with the supplied {id}Verify the UUID; treat as already absent only if your workflow allows it
429 Too Many RequestsRate limit quota exceeded (Retry-After header included)Wait for the Retry-After interval before retrying
500 Internal Server ErrorDatabase restrict constraint failure (e.g., soft-deleted book reference) or unhandled error (traceId included)Inspect service logs using traceId

Delete author schema

0 properties

Path identifier for the author to delete.

Schema does not contain any properties.