Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Delete Document Library Object (DLTDLO) command allows you to delete a document or a folder.
This command is used to delete documents and folders that are no longer needed from the system, which prevents system storage from being used for obsolete objects.
Note: When a document is deleted, a request is generated to remove its entry (if it exists) from the text index.
Restrictions:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
DLO | Document library object | Single values: *SEARCH, *ALL, *SYSOBJNAM Other values (up to 300 repetitions): Character value |
Required, Positional 1 |
FLR | In folder | Character value, *ANY, *NONE | Optional, Positional 2 |
CRTDATE | Creation period | Element list | Optional |
Element 1: Starting time and date | Element list | ||
Element 1: Starting time | Time, *AVAIL | ||
Element 2: Starting date | Date, *CURRENT, *BEGIN | ||
Element 2: Ending time and date | Element list | ||
Element 1: Ending time | Time, *AVAIL | ||
Element 2: Ending date | Date, *END | ||
CHKEXP | Expiration date | Date, *NO, *CURRENT | Optional |
DOCCLS | Document class | Character value, *ANY | Optional |
OWNER | Owner profile | Name, *CURRENT, *ALL | Optional |
SYSOBJNAM | System object name | Values (up to 300 repetitions): Name | Optional |
CMDCHRID | Command character identifier | Single values: *SYSVAL, *DEVD Other values: Element list |
Optional |
Element 1: Graphic character set | Integer | ||
Element 2: Code page | Integer | ||
ASP | Auxiliary storage pool ID | 1-32, *ANY | Optional |
Top |
Specifies the documents or folders that are deleted. If DLO(*SEARCH) is not specified, CRTDATE, CHKEXP, DOCCLS, CMDCHRID, and OWNER cannot be specified.
This is a required parameter.
When *SEARCH is specified, the search is performed by examining the document details.
Note: To delete a folder and all documents and folders within it, specify *ALL on the Document library object (DLO) parameter and the folder name using the In folder (FLR) parameter. Otherwise, if a folder name is specified on the Document library object (DLO) parameter, the folder must be empty to be deleted.
Top |
Specifies the folder that contains the documents or folders. If the document or folder does not exist in a folder, *NONE is specified.
Top |
Specifies that documents and folders created during the time period specified are deleted. If this parameter is specified, *SEARCH must be specified on the Document library object (DLO) parameter.
Element 1: Starting time
When the start-time is used as a search value, the start-date must not be *BEGIN.
Element 2: Starting date
Element 3: Ending time
Element 4: Ending date
Top |
Specifies the expiration date of the documents being deleted. The expiration date is assigned to specify when a document is no longer needed. A document with an expiration date (as specified by the user on the Change Document Details display) earlier than the date specified is deleted. If this parameter is specified, *SEARCH must also be specified on the Document library object (DLO) parameter.
Top |
Specifies the class of documents that are deleted. If this parameter is specified, *SEARCH must also be specified on the Document library object (DLO) parameter.
Top |
Specifies the owner of the documents and folders that are deleted. If this parameter is specified, *SEARCH must also be specified on the Document library object (DLO) parameter.
Top |
Specifies the system object names of the document library objects that are deleted. A maximum of 300 system objects can be specified. System object names can be specified only if *SYSOBJNAM is specified on the Document library object (DLO) parameter.
Top |
Specifies the character identifier (graphic character set and code page) for the data being entered as command parameter values (applies to the Document class (DOCCLS) parameter. The character identifier is related to the display device that was used to enter the command.
Top |
Specifies the identifier (ID) of the auxiliary storage pool (ASP) of the document library object to be deleted. A value other than *ANY can be specified on this parameter only if *ALL or *SEARCH is specified on the DLO parameter and *ANY is specified on the FLR parameter.
Note: This option is provided to aid in recovery from damage to a user ASP, particularly one that has overflowed. The document library objects and their details are deleted from the damaged ASP (after the necessary data recovery actions are taken for the ASP), thereby removing overflowed objects and potentially damaged objects from the ASP prior to restoring from backup media. More information on document library objects in ASPs is in the Backup and Recovery book, SC41-5304.
Top |
Example 1: Deleting a Folder
DLTDLO DLO(ABC)
This command deletes folder ABC if it contains no documents or folders.
Example 2: Deleting All Documents and Folders Within a Folder
DLTDLO DLO(*ALL) FLR(ABC)
This command deletes all the documents and folders that the user is authorized to delete from folder ABC. If folder ABC turns out to be empty, then it is also deleted.
Example 3: Deleting All Documents in a Document Class, Using *SECADM Special Authority
DLTDLO DLO(*SEARCH) CRTDATE((*AVAIL 080187) (*AVAIL 083187)) DOCCLS(LETTERS) OWNER(*ALL)
This command deletes all documents in document class LETTERS that were filed in the system during August 1987. Only the security officer or a user with *SECADM special authority is allowed to specify OWNER(*ALL).
Example 4: Deleting Current User's Documents
DLTDLO DLO(*SEARCH) CRTDATE((*AVAIL *BEGIN) (*AVAIL *END)) DOCCLS(*ANY) OWNER(*CURRENT)
This command deletes all documents belonging to the current user.
Example 5: Deleting User's Documents Filed Today
DLTDLO DLO(*SEARCH)
This command deletes all documents belonging to the specified user that were filed on that day.
Example 6: Deleting Documents and Folders With Document Descriptors
DLTDLO DLO(*SEARCH) CRTDATE((*AVAIL *BEGIN) (*AVAIL *END)) DOCCLS(*ANY) OWNER(*ALL)
This command deletes all documents and folders with document descriptors from the system. If the document descriptors are not synchronized with the document and folder objects, then they are the same as DLO(*ALL). The Backup, Recovery, and Availability topic in the Information Center has more information about synchronizing document descriptors.
Top |
*ESCAPE Messages
Top |