DELFILE (Delete SFS File Profile)
System environment
SFS files apply to z/VM® systems only.

Purpose
Use the DELFILE command to delete either a discrete or generic file profile from the RACF® database. (Note that the file itself is not physically deleted or scratched.)
Related Commands
- To protect an SFS file with a discrete or generic profile, use the ADDFILE command as described in ADDFILE (Add SFS File Profile).
- To change an SFS file, use the ALTFILE command as described in ALTFILE (Alter SFS File Profile).
- To list the information in the SFS file profile(s), use the LFILE command as described in LFILE (List SFS File Profile).
- To permit or deny access to an SFS file, use the PERMFILE command as described in PERMFILE (Maintain SFS File Access Lists).
- To obtain a list of SFS file profiles, use the SRFILE command as described in SRFILE (Obtain a List of SFS File Profiles).
Authorization Required
To delete a discrete or generic file profile, you must have sufficient authority over the file. RACF performs authorization checking in the following sequence until you meet one of these conditions:
- You have the SPECIAL attribute.
- The file profile is within the scope of a group in which you have the group-SPECIAL attribute.
- The user ID qualifier of the profile name is your user ID.
- You are the owner of the profile.
For discrete profiles only:
- The file is protected by a discrete profile and you are on the access list with ALTER authority.
- The file is protected by a discrete profile and your group or one of your groups (if list of groups checking is active) is on the access list and has ALTER authority.
- The file is protected by a discrete profile and the universal access authority is ALTER.
Syntax
The complete syntax of the DELFILE command is:
|
Parameters
- profile-name
- specifies the name of the discrete or
generic profile to be deleted from the RACF database. You may
specify only one profile-name. For the format of these profile names,
see Profile Names for SFS Files and Directories.
This value is required.
Examples
| Example 1 | Operation | User SFSADM1 wants to remove RACF protection from all of user JIM's files which are protected by the profile * * POOL1:JIM.**. |
| Known | SFSADM1 has the SPECIAL attribute. | |
| Command | DELFILE * * POOL1:JIM.** |
|
| Defaults | none | |
| Example 2 | Operation | User SMITH wants to remove RACF protection from his PROJECT SCRIPT file. |
| Known | SMITH's file pool is POOL1. | |
| Command | DELFILE PROJECT SCRIPT POOL1:SMITH. |
|
| Defaults | none | |