Delete Statements
To delete DMS objects in yuuvis® RAD, you have to execute the delete operation (via yuuvis® RAD management-studio) which takes an eSQL statement as input to select the objects to delete. This page gives you examples of the most commonly used eSQL statements.
Important
- The
sysitemcreationdate
field selects the creation date of the entire object (item), whereassyscreationdate
selects the creation date of the active version. - The datetime identifier takes input of the form
yyyy-MM-dd hh:mm:ss
". The only required part isyyyy
, but all left out parts will be autocompleted with 00 - Object type names and element (field) names are accessed by their technical names.
See Archiving Statements for examples of deleting by date/time, creator/modifier and metadata/ID criteria.
Statement | Description |
---|---|
Select [o] from [dms]:[sysdocument] as [o], [dps]:[sysbox] [b], [dps]:[sysbox2actualnode] [b2n], [dps]:[sysactualnode] [an] where [o].[sysboxid] = [b].[sysid] and [b].[sysid] = [b2n].[sysid1] and [b2n].[sysid2] = [an].[sysid] and exists (select [s].[sysid] from [dps]:[sysset] [s], [dps]:[sysstorage2set] [s2s], [dps]:[sysnode2storage] [n2s], [dps]:[sysbox2actualnode] [b2n] where [b].[sysid] = [b2n].[sysid1] and [b2n].[sysid2] = [n2s].[sysid1] and [n2s].[sysid2] = [s2s].[sysid1] and [s2s].[sysid2] = [s].[sysid] and [s].[syspermanence] = 'ARCHIVE') and [an].[sysretentiontime] < datetime'2022-07-24'L | This will delete all objects that were archived ( Note: Change |
| This will delete all objects where the creator of the active version is Notes:
|