Skip to main content

detach

detach(dataName): Promise<void>

Detach data from the model. Detaching removes the association of the data with the model.

Parameters

NameTypeDescription
dataNamestringThe name of the data to detach.

Returns

Promise<void>

Promise that resolves when the data has been detached.

Throws

If the server request fails.

Example

const model = await client.getModel('test-model');
await model.detach('test-data');