Skip to main content

delete

client.fileUpdateIntents.delete(id: string): Promise<unknown>

Deletes a file update intent.

Removes the specified intent and releases any file locks it held. Other agents will then be able to create intents for those files.

Parameters​

ParameterTypeRequiredDescription
idstringYesThe unique identifier of the intent to delete

Returns​

Promise<unknown> — A promise that resolves when the intent has been deleted

Example​

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.fileUpdateIntents.delete('id');
console.log(result);