IBM Support

Removing Files with Invalid Names

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

image-20250729154353-3

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

image-20250729154201-2

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.

[{"Line of Business":{"code":"LOB68","label":"Power HW"},"Business Unit":{"code":"BU070","label":"IBM Infrastructure"},"Product":{"code":"SWG60","label":"IBM i"},"ARM Category":[{"code":"a8m0z0000000CHZAA2","label":"Data Access"},{"code":"a8m0z0000000CHeAAM","label":"IBM i Db2"},{"code":"a8m0z0000001iI7AAI","label":"IBM i Db2-\u003ESQLPKG - SQL Packages"}],"ARM Case Number":"","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"All Version(s)"}]

Historical Number

N1018466

Document Information

Modified date:
29 July 2025

UID

nas8N1018466