Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
delete
# spec.yml name: Collection Name methods: delete: parametersSchema: type: object properties: hardDelete: type: boolean default: false description: Permanently delete instead of soft delete
delete.rest.yml
path: /contacts/{id} method: DELETE requestMapping: pathParameters: id: { $var: $.id } query: permanent: { $var: $.parameters.hardDelete } responseMapping: success: true
delete.js
export default async function deleteRecord({ apiClient, id, parameters }) { const queryParams = {} if (parameters?.hardDelete) { queryParams.permanent = true } await apiClient.delete(`/contacts/${id}`, { params: queryParams }) return { success: true, } }
id
credentials
parameters
Was this page helpful?