Skip to content
Get started

Delete a memory layer

client.memoryLayers.delete(stringid, MemoryLayerDeleteParams { workspaceId } params, RequestOptionsoptions?): void
DELETE/v1/workspaces/{workspaceId}/memory_layers/{id}

Deletes a memory layer from the workspace

ParametersExpand Collapse
id: string
params: MemoryLayerDeleteParams { workspaceId }
workspaceId: string

Delete a memory layer

import Cadenya from '@cadenya/cadenya';

const client = new Cadenya({
  apiKey: process.env['CADENYA_API_KEY'], // This is the default and can be omitted
});

await client.memoryLayers.delete('id', { workspaceId: 'workspaceId' });
Returns Examples