Solved! Go to Solution.
Views
Replies
Total Likes
Hi Shubham,
As @EstebanBustamante suggested, you will need to call the list method again.
In your code change
const existingfile = await files.list('/brief/')
to
let existingfile = await files.list('/brief/')
And after calling the delete method make following change
await files.delete(`brief/${params.briefids}.JSON`)
existingfile = await files.list('/brief/')
Views
Replies
Total Likes
Hi
I think you should call the files.list
method again after the delete operation to get the updated list of files.
Hi Shubham,
As @EstebanBustamante suggested, you will need to call the list method again.
In your code change
const existingfile = await files.list('/brief/')
to
let existingfile = await files.list('/brief/')
And after calling the delete method make following change
await files.delete(`brief/${params.briefids}.JSON`)
existingfile = await files.list('/brief/')
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies