DELETE-FILE
Deletes a file or hyper file.
Command class
TCL-I command
Syntax
DELETE-FILE file-specifier
Syntax elements
file-specifier Specifies the file to be cleared, according to general conventions.
Restrictions
You cannot delete a dictionary file until you have deleted its associated data sections.
SYS1 privileges are required to execute
You cannot delete an encrypted file unless your security profile gives you access to the encryption key.
Comments
Caution
Ensure that the file you want to delete is not open elsewhere or GFEs may occur.
Do not a delete file that may contain GFEs. Instead, contact your support representative for assistance.
When you delete a file, all the information in the file is no longer accessible. The space that was used for that file is returned to overflow.
You have the choice of deleting one or more data sections only, or all data sections and the dictionary file.
Deleting the hyper file definition item (also known as an H-pointer or HPTR) for a hyper file will only delete the H-pointer, not the hyper sections. Note if the hyper sections are to be deleted then use the HYPER-REMOVE command with its HYPER-REMOVE hyper-file-name * syntax before deleting the H-pointer, to remove the update lock on the hyper sections.