Troubleshooting
Problem
This document discusses removing files with invalid names.
Symptom
An application or user should not be able to create files or objects in IBM® OS/400® with invalid file names.
Cause
These files or objects are difficult to remove since most commands (DLTF, for example) and menu options will not accept the invalid object name. Consider investigating and correcting the cause of the invalid object names.
Resolving The Problem
The following options can be attempted to remove the object.
Option 1 - Use ACS
1) Go to ACS and select the system, then integrated files systems

2) Navigate to the path QSYS.LIB/library/
Note: the library should be replaced by the library that the file resides in.
3) Highlight the file right click and select delete

Option 2 - CL command RMVLNK
RMVLNK '/QSYS.LIB/userlib.LIB/_CSETUPSGA.SQLPKG'
Replace userlib with the library the object resides in and _CSETUPSGA with the object that cannot be deleted.
Option 3 - CL command CLRLIB or DLTLIB
CLRLIB userlib
DLTLIB userlib
Replace userlib with the library that contains the object that can not be deleted.
You may need to use CL command MOVOBJ to move all objects you want to keep to another library. Then Clear or delete the library.
Historical Number
N1018466
Was this topic helpful?
Document Information
Modified date:
29 July 2025
UID
nas8N1018466