Skip to main content

Delete

Basic

This method interacts with the Basic Delete endpoint to delete a resource by its unique identifier.

Usage

const response = await userService.delete('79c8c567b05e986509d55733a');

Parameters

ParameterTypeDescription
identifierstringUnique identifier of the resource to be deleted.
axiosRequestConfigAxiosRequestConfig (optional)Axios request configuration for fine-tuning the HTTP request.

Response

PropTypeDescription
successbooleanIndicates whether the request was successful.
statusnumberHTTP status code of the response.
messagestringA message providing additional information about the response, especially in case of errors.
rawstringThe ID of the deleted resource.
datastringThe ID of the deleted resource.
headersobject[AxiosHeaders]Axios headers associated with the response.
{
success: true,
status: 200,
raw: '79c8c567b05e986509d55733a',
data: '79c8c567b05e986509d55733a',
headers: Object [AxiosHeaders] {}
}