Skip to content

Function: ODataDelete()

ODataDelete(entitySetName, options?): MethodDecorator

Defined in: packages/core/src/decorators/odata-delete.decorator.ts:21

Composite method decorator for OData DELETE endpoints.

Composes:

  1. Delete(path) — NestJS route decorator, defaults to ':key'
  2. HttpCode(204) — DELETE returns 204 No Content per D-04
  3. SetMetadata(ODATA_ROUTE_KEY, { entitySetName, operation: 'delete' })
  4. UseFilters(ODataExceptionFilter) — formats errors as OData v4 error bodies

Per D-04: DELETE returns 204 with no body. No ODataResponseInterceptor — no body. Zero TypeORM imports — per PKG-01 architecture constraint.

Parameters

entitySetName

string

options?

ODataDeleteOptions

Returns

MethodDecorator