The following DQL will identify which are the documents that are checked out by user. The folder filter is added to reduce unnecessary results. It can be removed if we want to find out for the entire docbase. Since we specified ‘descend’, all subfolders are included.
select object_name, r_lock_owner from dm_document where r_lock_owner is not nullstring and folder(‘/MyCabinet’, descend)
The following DQL will cancel checked out for all documents that were checked out in a specific cabinet/folder. Since we specified ‘descend’, all subfolders are included.
update dm_document object set r_lock_owner = ” where r_lock_owner is not nullstring and folder(‘/MyFolder’, descend)