Removing deleted docs from a process variable

Hi,
Do you have any idea how to remove all of the documents from a process variable that were previously physically deleted?
The deleted documents in the documents process variable (multiple) are shown as random numbers (for e.q. "85385235"...)
Please help me remove them and leave only the documents that are still valid (not deleted). Using Appian functions (not other plugins/smart services) is preferred.
Thank you in advanced...

OriginalPostID-245303

  Discussion posts and replies are publicly visible

Parents
  • At first the documents are put into one folder (Version 0.1). After the made changes in the documents in the folder, sometimes it happens the user no longer needs some file in that folder and deletes it. At that point, this file is shown in the process variable as a number (his document number) instead of his name (and this is logical, because the file no longer physically exist).
    After this, the user continues the process where a new version folder is created (for e.q. Version 0.2) and all the files from Version 0.1 are copied into it. Here is the problem (when it tries to copy a non existing document).
Reply
  • At first the documents are put into one folder (Version 0.1). After the made changes in the documents in the folder, sometimes it happens the user no longer needs some file in that folder and deletes it. At that point, this file is shown in the process variable as a number (his document number) instead of his name (and this is logical, because the file no longer physically exist).
    After this, the user continues the process where a new version folder is created (for e.q. Version 0.2) and all the files from Version 0.1 are copied into it. Here is the problem (when it tries to copy a non existing document).
Children
No Data