Media Deletion Problems

So I have been trying to find a way so that users of my site will be able to delete their uploaded images, videos, audio and documents. I have not been able to find a way to do it with code, and before anyone suggest it, storing media in a database uploads it to the Wix media section where is can only be deleted manually by the host.

This seems like a massive privacy problem to me as users should be able to have control of their own uploaded and should not have to message the host who has to personally find and review the item(s) to permanently delete them.

Is there a way for users to delete their own uploaded material (images, videos, audio and documents) or will I have to use an external storage medium? If the latter, does anyone have any suggestions and tips on how to set it up in Wix?

Hi,

If you want your users to be able to delete the content that they upload you can use the remove() function from the wix-data API.

You could create a delete button and set up an onClick function that deletes the item from a collection.

Hope this helps!

Dara | Corvid Team

Yes but as I said if media is uploaded to a database it is automatically uploaded to the media section. Removing it from the database does not remove it form the media section.

Hi,

Unfortunately, it is not possible to delete files from the Media Manger using code.

You will see a feature request post about this here .

Dara | Corvid Team