Skip to content

UseDelete

katanakit-js / useDelete

function useDelete<T>(
apiName,
endpointName,
urlOptions?,
): Promise<FetchResult<T>>;

Defined in: core/services/http.service.ts:780

DELETE helper over a registered API endpoint.

Type Parameter Default type
T unknown
Parameter Type Description
apiName string The registered API key.
endpointName string The endpoint key within the API.
urlOptions? UrlOptions Optional URL building options.

Promise<FetchResult<T>>

A FetchResult with data or error.