
const deleteasync = async (id) =>{ console.log(id) const response = await databases.deleteDocument("6427c6d20464df58bf36","6427c6dcd6bc73a91b81","id") response.then( function (response){ console.log(response) }, function (error){ console.log(error) } ) window.location.reload() }

The error is can't find document id

are you passing the document id or just 'id' as the last argument?

Should be like - databases.deleteDocument('[DATABASE_ID]', '[COLLECTION_ID]', '[DOCUMENT_ID]');

It is a document id I am passing the id through click

Basically it's an react app

should it be inside " "
then if its a variable? 👀

It should be const response = await databases.deleteDocument("6427c6d20464df58bf36", "6427c6dcd6bc73a91b81", id);
, I guess.

Ok will try this also
Recommended threads
- Is it possible to getRow with all relati...
With the new Opt-In relationship loading, is it possible to query getRow to get all attributes and relationships and possibly even cascading relationships? I tr...
- TableDB.getRow() response does not conta...
This is for Web/React sdk 20.0.0 The row was created via `TableDB.createRow(...)` and I can see it in the console with the relationships correctly set. In the c...
- Permissions for bulk operation
Hi team, I have a question: “In the databases.createDocuments bulk API, can I set document-level permissions? If yes, how exactly should I include the permissio...
