Delete product

Hi

I was doing conform and messed up published plates to already existing sequence.
now i have both right and wrong plates in the same shots

soooo is there a way to delete this products from db?

Yes, you can the standalone loader.
image

you’ll find option to delete versions, it will do all the deadlifting for you.


Alternatively, you can use ayon-python-api or use the REST API directly.
e.g. operation/delete_product

Currently, I don’t have an example for deleting products but there’s a guide about using the api.

ohh, i see thanks!

if someone wants to delete all product u need to click dot and keep 0 versrions

1 Like

Hi @mustafa_jafar , why doesn’t it remove the product in the database?

Currently the product is still visible in the Project Browser in the web UI (after using the solution provided by @timsergeeff):

It has the deleted tag but I can’t filter out the deleted products.

I can delete the product with the API but there’s no way to do this in the interface, is it planned?

Hey,
This topic came before on discord and it deserves an issue.
for more information check this thread on discord.

1 Like

Thanks for the link, where should I make an issue? In the AYON web UI?

If I recap:

  • We can delete all product versions in the Loader by right clicking and DeleteOld Versions > Versions_To_Keep = 0 and check Remove_Publish_Folder

  • It won’t show in the Loader again but it’s still visible in the web UI in the Browser tab for the project

  • In the UI the product version has the deleted tag and the product has "active": true but doesn’t get filtered in the UI

I believe there is an existing issue on ayon-frontend that matches this. This one: Create and delete version from web UI · Issue #832 · ynput/ayon-frontend · GitHub

2 Likes

The issue is more related to having a web UI for creating and deleting. As @mustafa_jafar stated, the Tray Loader is already a UI option to delete the product. It just doesn’t delete it properly from the database, as @johhnry said. It’s still visible via the web UI (including preview).
So yes, adding the functionality to the web UI too is convenient. However all tools - including Tray Loader e.g. - should clean up properly and actually delete the product where ever it’s represented.
Having web UI, stand-alone tools, integrations and disc storage out of sync will lead to confusion. And keeping large preview files of deleted products on servers will clutter them for no reason.

2 Likes