deleteInstance Method

Delete a strongly typed instance. Sends a request body with a WSG instance.

deleteInstance<T extends WsgInstance<T>>(requestContext: AuthorizedClientRequestContext, relativeUrlPath: string, instance?: T, requestOptions?: WsgRequestOptions): Promise<void>

Parameter Type Description
requestContext AuthorizedClientRequestContext The client request context
relativeUrlPath string Relative path to the REST resource.
instance T Instance to be deleted.
requestOptions WsgRequestOptions WSG options for the request.

Returns - Promise<void>

Promise resolves after successfully deleting instance.

Defined in

Last Updated: 11 June, 2024