I want to be able to delete upload media with code, is this possible? A reverse upload button or something?
Is there an automatic way to delete visitor uploaded images, videos, documents or audio when their links are deleted from a database?
I want to be able to delete upload media with code, is this possible? A reverse upload button or something?
Is there an automatic way to delete visitor uploaded images, videos, documents or audio when their links are deleted from a database?
Hi,
If someone uploaded a video to your database collection successfully, in order to remove it, you would have to create a button or process with code that triggers a query for the database that the media was uploaded to and use the remove() method to remove the media.
Best Regards,
Edward
I want to delete media from wix media not a dataset.
Hi,
Currently, removing a file from the media manager with code is not supported. You can, however, check to see if this feature has been requested or request the feature here .
Best Regards,
Edward
I would like to do this. Please share code snippet?
@paperpalacepub As Edward mentioned, this feature is not currently supported. You can upvote the feature request here: https://www.wix.com/velo/requested-feature/delete-media-files-from-backend-code-media-mngr
Hi Marlowe,
I wish to use the following: If someone uploaded a video to your database collection successfully, in order to remove it, you would have to create a button or process with code that triggers a query for the database that the media was uploaded to and use the remove() method to remove the media.
Please suggest code snippet. Thanks in advance!
@paperpalacepub
As already mentioned, this feature still do not exist and to achieve your desired aim is not possible at current moment.
Marlowe gave you a link to the “Velo-Wishlist” where you can vote for a new feature.
Was this ever released? I see that the wix-media.v2 package offers this functionality somewhat, but its still in “developer preview” and I’d prefer to be able to rely on this? Any of the experts have a take on this? I went to the link above, and it says that the feature request was released, but I cant seem to find it in any of the relevant built in wix modules