Share via


Custom Models - Delete

Mark model for deletion. Model artifacts will be permanently removed within a predetermined period.

DELETE {endpoint}/formrecognizer/v2.1/custom/models/{modelId}

URI Parameters

Name In Required Type Description
endpoint
path True

string

Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus2.api.cognitive.microsoft.com).

modelId
path True

string (uuid)

Model identifier.

Request Header

Name Required Type Description
Ocp-Apim-Subscription-Key True

string

Responses

Name Type Description
204 No Content

Successfully marked model for deletion. Model artifacts will be removed within a predefined time period.

Other Status Codes

ErrorResponse

Response entity accompanying non-successful responses containing additional details about the error.

Security

Ocp-Apim-Subscription-Key

Type: apiKey
In: header

Examples

Delete custom model

Sample request

DELETE {endpoint}/formrecognizer/v2.1/custom/models/f973e3c1-1148-43bb-bea8-49d0603ab3a8

Sample response

Definitions

Name Description
ErrorInformation
ErrorResponse

ErrorInformation

Name Type Description
code

string

message

string

ErrorResponse

Name Type Description
error

ErrorInformation