#can't delete an item
1 messages · Page 1 of 1 (latest)
It's in the repo Ajay820
Yeah read is happening
Repo link
Didn't checked with update but create and read is happening
where exactly in the repo are you doing this?
Please post the link to a code snippet. Not a full repo
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()
}
I think I have to remove async and await right