Delete a file (DELETE)

Use the DELETE method to delete a record and the file.

This endpoint works exacly like the CRUD DELETE endpoint, the only difference is that it deletes the file as well.

uniqueId - The uniqueId is required to delete the record and file.

Request data#


URL format: https://baseUrl/versionNumber/customEndpointRoute/userEndpoint?key=apiKey&uniqueId=uniqueId


Request Cookies#

yawe_access_tokenThe Access token is required for secure endpoints.

It is obtained when doing a login. To automatically include it in the request you need to set the following property:

// using fetch
{ credentials: 'include' }
// using axios
{ withCredentials: true }

For more information check Secure Endpoints.


Request Parameters#

The following table describes the Request parameters.

baseUrlBase url for calling the API.


versionNumberService version.

Value: The current value is 1.

customEndpointRouteThe route which identifies custom endpoints.

Default value: ce

userEndpointThe endpoint name generated by the user.

Value: the name created at

apiKeyThe API Key of the project.Yes
uniqueIduniqueId of the record to be deleted.Yes
masterKeyOverrides the need for Access tokens or restrictions applied to Authentication endpoints.

Don't use this key in your client application.

For more information please refer to projects.

Value: the masterKey created at


Usage example:

const url = "";
fetch(url, {
method: 'DELETE',

Response data#

Error codes#

Error codeDescription
400Possible reasons:
  • Endpoint or API Key not valid.
401If the endpoint is secured and the access token is missing or is not valid.

It may also return this error if the user no longer exists.

403Missing API Key, not allowed origin or disallowed request without orign.

Successful response#

deleted: true,
message: 'Data deleted.'