Hi ,
I have implemented a DFC code where it deletes all the documents present inside Trash folder.
Following is the query:-
delete dm_sysobject OBJECTS where DATEDIFF(day,"r_modify_date",DATE('TODAY'))>=30 and any i_folder_id in (select r_object_id from dm_folder where object_name = 'Trash' and owner_name = 'dmsevcstg'
But i am getting following error :-
[DM_QUERY_F_UP_DESTROY]fatal: "DELETE: An error has occurred during a destroy operation."
Manually finding in a DA is not possible coz there are around 500 and so docuemnts present in all the Trash folders.
Have used the unlock query to unlock all the documents as well.
Please help me in the code to check through some dql.
I would also want to know if the document is linked/referenced somewhere,then how to unlink it ?These might be the error i think so causing delete to fail.
Thanks and Regards,
Priyanka Ithape