The ADMIN_REMOVE_MSGS procedure is used to clean up messages generated by a single execution of a data movement utility command through the ADMIN_CMD procedure. The input parameter operation_id identifies the operation.
The schema is SYSPROC.
EXECUTE privilege on the ADMIN_REMOVE_MSGS procedure. The fenced user ID must be able to delete files under the directory indicated by registry variable DB2_UTIL_MSGPATH. If the registry variable is not set, then the fenced user ID must be able to delete the files in the tmp subdirectory of the instance directory.
CALL SYSPROC.ADMIN_REMOVE_MSGS('24523_THERESAX')
The CALL statement that invokes this procedure with the appropriate operation_id can be found in the MSG_REMOVAL column of the first result set returned by ADMIN_CMD procedure.