import Tractorbeam from 'tractorbeam';
const client = new Tractorbeam({
apiToken: process.env['TRACTORBEAM_API_TOKEN'], // This is the default and can be omitted
});
async function main() {
await client.documents.delete('doc_2yYISEvrO9LrLAOJjnw27');
}
main();
Documents
Delete Document
Delete a document by its ID.
DELETE
/
documents
/
{id}
JavaScript
Copy
import Tractorbeam from 'tractorbeam';
const client = new Tractorbeam({
apiToken: process.env['TRACTORBEAM_API_TOKEN'], // This is the default and can be omitted
});
async function main() {
await client.documents.delete('doc_2yYISEvrO9LrLAOJjnw27');
}
main();