Hi everyone,
Is it possible to delete the files contained in the trash from code?
I saw that using wix-media.v2 the command: listDeletedFiles
it should list all the files in the trash.
It doesn’t work for me, it comes back
I’ve not tested if it will also permanently delete files that are already in the trash.
Edit: Note this code will not work as-is and you’ll need to also elevate the function to get it to run. The docs on doing this are available here: elevate - Velo API Reference - Wix.com
Hi Anthony,
I understand, in order to make everything ok, you need to raise the users to a high level. In the next few days, I’ll do some tests then I’ll update you. Thanks for now
Hi Anthony,
what a spectacle the library: wix-media.v2 and especially the function: files.updateFileDescriptor.
You did a good job, congratulations to your team.
I solved the problem of the mediaManager.upload, which for a large amount of files to copy, because most of the time it doesn’t work or worse it doesn’t respond causing great frustration for me and my collaborators.