Delete an Asset using UUID

DELETE /ocaapi/v2.0/asset/<asset_uuid>

To delete an asset using UUID.

When you delete an asset, all the configuration data and reports related to the asset are also deleted.

HTTP Status Code

- 200: OK

- 400: Bad Request

- 401: Unauthorized user

- 403: Forbidden

- 404: Not Found

- 503: Service Unavailable

Input ParametersInput Parameters

Parameter

Mandatory

/Optional

Data Type

Description

asset_uuid

Mandatory

Integer

Provide the UUID of the asset.

Header ParametersHeader Parameters

Parameter

Mandatory

/Optional

Data Type

Description

assetFlowType

 Optional

Text

Provide asset flow type. The default value is DEFAULT.
authorization Mandatory  Text The token that was generated using the Fetch Authentication Token API.

SampleSample

API Request

"curl -X DELETE""https:// <api_gateway_url>/ocaapi/v2.0/asset/<asset_uuid>""-H""assetFlowType: DEFAULT"" -H""Authorization: Bearer <token>"      
    

Response

{
   "    ""code":200,
   "    ""data":{
      "        ""assetUUID":"663a040b-c9c7-4bee-b4a3-f4f8bf61b8a5""    "
   },
   "    ""message":"Asset(s) Revoked Successfully."
}