Back

[SOLVED] I can still get and download the file even after successfully deleted it from bucket.

  • 0
  • Web
  • Storage
Nikky
6 Sep, 2023, 07:19

Hi, is this an expected behavior? I deleted my file using deleteFile. I tried to getFilePreview that deleted file by passing the Id (I kept a copy of it before deleting). Im not sure if it is expected but somehow I can still preview and even download that file even if it's already deleted from the bucket, I only need to pass the ID of those deleted files. Btw, Im using Client SDK and Cloud

TL;DR
The user deleted a file from a bucket, but is still able to access and download it using the file's ID. They are asking if this is expected behavior. It is possible that the file is still cached. No solution is provided in the thread.
Nikky
6 Sep, 2023, 07:21

I can still get and download the file even after successfully deleted it from bucket.

ideclon
6 Sep, 2023, 11:22

It might still be cached? Although I’m under the impression that any deletion should trigger a cache refresh

Nikky
6 Sep, 2023, 15:00

@ideclon ah yes. I just checked, it's now gone. πŸ‘

Drake
6 Sep, 2023, 16:06

[SOLVED] I can still get and download the file even after successfully deleted it from bucket.

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more