I've deleted images in the local sync folder, but they are shown in label studio

Hello!

I have a “small” problem with deleted images in the sync folder for Label Studio. The issue is that I had to delete some images from the sync folder. Even after deleting the images from the sync folder, Label Studio still shows them in the UI.
Is there a way to filter out these deleted images all at once?
I have over 7,000 deleted images, so doing it manually would take a very long time.

Thank you in advance!

There is no easy way to do it. You don’t need to delete images in the sync storage, you should use the data manager action “Delete tasks”.

Now you have to write an API/SDK script to do it or you can try doing it using label studio terminal with the direct django ORM access.