When we delete a document with linked annotation, both the document and the annotation are deleted (to be exact, moved to the trash).
How can we do the same for MD document with linked images? How can we have the document and the linked images all move to trash when we delete the MD document.
I have used the below Smart Rule script to move the linked images with the MD document when the MD document is move to a new database. We have “On Moving” trigger/action for that.
I know we do not have “On Deleting” trigger/action. But if we can do that for linked annotation, we should be able to do it with linked images, right?
When we delete a MD document or any document, it is moved to the trash. Can I use “On Moving” and to check that is is moved to trash? Is trash a special location and database that we can identify in scripting.
Thanks. This is what I am doing now. This requires manual effort.
It also select those stand alone image, with no link from other document.
Since I am able to move the linked images with MD document, I am looking for the next step (if possible) to auto delete the linked images with the deleted MD document.