Delete a data source

Use this DELETE request to delete an existing data source:

DELETE /wfo/api/em/recorder/v2/datasources/{id}

If you are at release 15.2 HFR 4 or earlier use the URL that begins /api/em/v2/datasources. If you are at release 15.2 HFR4 with the latest KBs (or higher) use the URL that begins /wfo/api/em/recorder/v2/datasources.

This request requires the Configure Data Sources user security privilege. This privilege is not tenant safe and cannot be used when using the "User Token" for authentication in a Multi-Tenant SaaS environment. Instead, use an "API Tenant Token" in a Multi-Tenant SaaS environment.

Request Parameter

Type

Name

Description

Schema

Required

Path

id

The unique numeric identifier of the data source to be deleted.

Integer (int32)

True

Request Example

Here is an example of this request.

DELETE http://10.100.200.90/api/em/v2/datasources/1002

Accept: application/vnd.api+json

Content-Type: application/vnd.api+json

Responses

This request can return these responses.

HTTP Status Code

Detail

Schema

204

Data Source was successfully deleted.

No Content

410

Gone - Requested Data Source was not available, might be deleted already

No Content

428

Require Condition Failure - Data source with children cannot be deleted

No Content

500

Internal Server Error

GeneralServerErrorResponse

An example of the 500 error response is shown below. This error responses includes the following attributes:

  • status - The HTTP status code applicable to a problem, expressed as a string.

  • title - The Enterprise Manager error code title.

  • detail - A short description of the error.

Error response 500

{

"errors": [ {

"status" : "500"

"title" : "Internal Error",

"detail" : "Data Source operation failed due to internal error"

} ]

}

HTTP status codes

Data Sources API v2 requests and error codes

Data Source API version 2 overview