How to remove these files with name too long to delete so cleaning of ...\server\tomcat\work folder can proceed to install ifix ?
![]()
We are trying to install ifix7 on Windows/Tomcat CLM 5.0.2 and having issues cleaning up ...\rtc_502\JazzTeamServer\server\tomcat\work & ...\temp as prerequisite to install ifix7.
First time: we traveled down the deep dir tree to the leaves to remove the files OK. But on the second time (ifix7 crashed CLM, so the 2 dirs were cleaned again prior to restart the ifix'ed app): even going all the way down and permanent delete (instead of moving them to the recycle bin) the files at similar depth as below didn't help. Renaming these such files was not an option either.
...\rtc_502\JazzTeamServer\server\tomcat\workOBSOLETE\Catalina\localhost\ccm\eclipse\configuration\org.eclipse.osgi\bundles\32\data\ae262f3c8390ef9f8650e3f0095bb8f6\230-1438843629288
Even when travel down to the very depth of the dir tree to attempt (permanent) deletion:
![]()
There was no option (right cliick) to rename to shorten the name for deletion
![]()
This rename option (on right click) is available on normal files:
![]()
Any idea how to and what are these files ?
We had to rename ...\work to ...\workOBSOLETE
|
Accepted answer
![]()
Ralph Schoon (63.3k●3●36●46)
| answered Aug 09 '15, 9:08 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Windows....
open a shell go into the root folder and use rmdir /Q/S foldername long TRUONG selected this answer as the correct answer
Comments Thx Ralph,
My comments too long, so have to use this answer space.
The rmdir command, even with /Q/S, would not remove a non-empty dir, did not try any variation in level or switch. Maybe by root dir you meant bottom parent dir (of those files), but did not try that.
Your direction reminded me of using the Unix rm command, and it successfully removed these files though it looked weird on the long way (output side) there:
D:\IBM\rtc_502\JazzTeamServer\server\tomcat\workOBSOLETE>rmdir /q/s Catalina
Catalina\LOCALH~1\ccm\eclipse\CONFIG~1\ORGECL~1.OSG\bundles\32\data\AE262F~1 - The directory is not empty.
D:\IBM\rtc_502\JazzTeamServer\server\tomcat\workOBSOLETE>rmdir /Q/S Catalina
Catalina\LOCALH~1\ccm\eclipse\CONFIG~1\ORGECL~1.OSG\bundles\32\data - The directory is not empty.
D:\IBM\rtc_502\JazzTeamServer\server\tomcat\workOBSOLETE>rm -R Catalina
rm: descend directory
catalina\localhost\ccm\eclipse\configuration\org.eclipse.osgi\bundles\32\data', overriding mode 0777? y
</div>
<div>
rm: catalina\localhost\ccm\eclipse\configuration\org.eclipse.osgi\bundles\32\data: No such file or directory
</div>
<div>
rm: catalina\localhost\ccm\eclipse\configuration\org.eclipse.osgi\bundles\32\data: No such file or directory
</div>
<div>
rm: descend directory catalina\localhost\ccm\eclipse\configuration\org.eclipse.osgi\bundles\32', overriding mode 0777? y
rm: catalina\localhost\ccm\eclipse\configuration\org.eclipse.osgi\bundles\32: No such file or directory
rm: catalina\localhost\ccm\eclipse\configuration\org.eclipse.osgi\bundles\32: No such file or directory
rm: descend directory
catalina\localhost\ccm\eclipse\configuration\org.eclipse.osgi\bundles', overriding mode 0777? y
</div>
<div>
rm: catalina\localhost\ccm\eclipse\configuration\org.eclipse.osgi\bundles: No such file or directory
</div>
<div>
rm: catalina\localhost\ccm\eclipse\configuration\org.eclipse.osgi\bundles: No such file or directory
</div>
<div>
rm: descend directory catalina\localhost\ccm\eclipse\configuration\org.eclipse.osgi', overriding mode 0777? y
rm: catalina\localhost\ccm\eclipse\configuration\org.eclipse.osgi: No such file or directory
rm: catalina\localhost\ccm\eclipse\configuration\org.eclipse.osgi: No such file or directory
rm: descend directory
catalina\localhost\ccm\eclipse\configuration', overriding mode 0777? y
</div>
<div>
rm: catalina\localhost\ccm\eclipse\configuration: No such file or directory
</div>
<div>
rm: catalina\localhost\ccm\eclipse\configuration: No such file or directory
</div>
<div>
rm: descend directory catalina\localhost\ccm\eclipse', overriding mode 0777? y
rm: catalina\localhost\ccm\eclipse: No such file or directory
rm: catalina\localhost\ccm\eclipse: No such file or directory
rm: descend directory
catalina\localhost\ccm', overriding mode 0777? y
</div>
<div>
rm: catalina\localhost\ccm: No such file or directory
</div>
<div>
rm: catalina\localhost\ccm: No such file or directory
</div>
<div>
rm: descend directory catalina\localhost', overriding mode 0777? y
rm: catalina\localhost: No such file or directory
rm: catalina\localhost: No such file or directory
D:\IBM\rtc_502\JazzTeamServer\server\tomcat\workOBSOLETE>ls
D:\IBM\rtc_502\JazzTeamServer\server\tomcat\workOBSOLETE>
_________
Listing of files before deletion
D:\IBM\rtc_502\JazzTeamServer\server\tomcat\workOBSOLETE>ls -l
total 0
drwxrwxrwx 1 user group 0 Aug 5 23:46 Catalina
...
Catalina\localhost\ccm\eclipse\configuration\org.eclipse.osgi\bundles\32\data\ae262f3c8390ef9f8650e3f0095bb8f6=:
total 0
drwxrwxrwx 1 user group 0 Aug 7 08:32 230-1438843629288
ls: Catalina\localhost\ccm\eclipse\configuration\org.eclipse.osgi\bundles\32\data\ae262f3c8390ef9f8650e3f0095bb8f6\230-1438843629288\com.ibm.team.repo
sitory.migration.internal.applicationmigration.query.BaseApplicationMigrationStatusQueryModel$ApplicationMigrationStatusQueryModel: No such file or di
rectory
ls: Catalina\localhost\ccm\eclipse\configuration\org.eclipse.osgi\bundles\32\data\ae262f3c8390ef9f8650e3f0095bb8f6\230-1438843629288\com.ibm.team.repo
sitory.migration.internal.applicationmigration.query.BaseApplicationMigrationStatusQueryModel$ManyApplicationMigrationStatusQueryModel: No such file o
r directory
ls: Catalina\localhost\ccm\eclipse\configuration\org.eclipse.osgi\bundles\32\data\ae262f3c8390ef9f8650e3f0095bb8f6\230-1438843629288\com.ibm.team.repo
sitory.service.diagnostic.diagnostictests.query.BaseDiagnosticTestResultItemQueryModel$DiagnosticTestResultItemQueryModel: No such file or directory
ls: Catalina\localhost\ccm\eclipse\configuration\org.eclipse.osgi\bundles\32\data\ae262f3c8390ef9f8650e3f0095bb8f6\230-1438843629288\com.ibm.team.repo
sitory.service.diagnostic.diagnostictests.query.BaseDiagnosticTestResultItemQueryModel$ManyDiagnosticTestResultItemQueryModel: No such file or directo
ry
Catalina\localhost\ccm\eclipse\configuration\org.eclipse.osgi\bundles\32\data\ae262f3c8390ef9f8650e3f0095bb8f6\230-1438843629288=:
total 0
Catalina\localhost\jts=:
total 0
drwxrwxrwx 1 user group 0 Aug 7 08:33 eclipse
...
Catalina\localhost\jts\eclipse\configuration\org.eclipse.osgi\bundles\32\data=:
total 0
drwxrwxrwx 1 user group 0 Aug 7 08:33 ae262f3c8390ef9f8650e3f0095bb8f6
Catalina\localhost\jts\eclipse\configuration\org.eclipse.osgi\bundles\32\data\ae262f3c8390ef9f8650e3f0095bb8f6=:
total 0
drwxrwxrwx 1 user group 0 Aug 7 08:33 109-1438843758799
ls: Catalina\localhost\jts\eclipse\configuration\org.eclipse.osgi\bundles\32\data\ae262f3c8390ef9f8650e3f0095bb8f6\109-1438843758799\com.ibm.team.repo
sitory.migration.internal.applicationmigration.query.BaseApplicationMigrationStatusQueryModel$ApplicationMigrationStatusQueryModel: No such file or di
rectory
ls: Catalina\localhost\jts\eclipse\configuration\org.eclipse.osgi\bundles\32\data\ae262f3c8390ef9f8650e3f0095bb8f6\109-1438843758799\com.ibm.team.repo
sitory.migration.internal.applicationmigration.query.BaseApplicationMigrationStatusQueryModel$ManyApplicationMigrationStatusQueryModel: No such file o
r directory
ls: Catalina\localhost\jts\eclipse\configuration\org.eclipse.osgi\bundles\32\data\ae262f3c8390ef9f8650e3f0095bb8f6\109-1438843758799\com.ibm.team.repo
sitory.service.diagnostic.diagnostictests.query.BaseDiagnosticTestResultItemQueryModel$DiagnosticTestResultItemQueryModel: No such file or directory
ls: Catalina\localhost\jts\eclipse\configuration\org.eclipse.osgi\bundles\32\data\ae262f3c8390ef9f8650e3f0095bb8f6\109-1438843758799\com.ibm.team.repo
sitory.service.diagnostic.diagnostictests.query.BaseDiagnosticTestResultItemQueryModel$ManyDiagnosticTestResultItemQueryModel: No such file or directo
ry
Catalina\localhost\jts\eclipse\configuration\org.eclipse.osgi\bundles\32\data\ae262f3c8390ef9f8650e3f0095bb8f6\109-1438843758799=:
total 0
Catalina\localhost\rm=:
total 0
drwxrwxrwx 1 user group 0 Aug 7 08:33 eclipse
...
Catalina\localhost\rm\eclipse\configuration\org.eclipse.osgi\bundles\29\data=:
total 0
drwxrwxrwx 1 user group 0 Aug 7 08:33 ae262f3c8390ef9f8650e3f0095bb8f6
Catalina\localhost\rm\eclipse\configuration\org.eclipse.osgi\bundles\29\data\ae262f3c8390ef9f8650e3f0095bb8f6=:
total 0
drwxrwxrwx 1 user group 0 Aug 7 08:33 142-1438843822508
ls: Catalina\localhost\rm\eclipse\configuration\org.eclipse.osgi\bundles\29\data\ae262f3c8390ef9f8650e3f0095bb8f6\142-1438843822508\com.ibm.team.repos
itory.migration.internal.applicationmigration.query.BaseApplicationMigrationStatusQueryModel$ApplicationMigrationStatusQueryModel: No such file or dir
ectory
ls: Catalina\localhost\rm\eclipse\configuration\org.eclipse.osgi\bundles\29\data\ae262f3c8390ef9f8650e3f0095bb8f6\142-1438843822508\com.ibm.team.repos
itory.migration.internal.applicationmigration.query.BaseApplicationMigrationStatusQueryModel$ManyApplicationMigrationStatusQueryModel: No such file or
directory
ls: Catalina\localhost\rm\eclipse\configuration\org.eclipse.osgi\bundles\29\data\ae262f3c8390ef9f8650e3f0095bb8f6\142-1438843822508\com.ibm.team.repos
itory.service.diagnostic.diagnostictests.query.BaseDiagnosticTestResultItemQueryModel$DiagnosticTestResultItemQueryModel: No such file or directory
ls: Catalina\localhost\rm\eclipse\configuration\org.eclipse.osgi\bundles\29\data\ae262f3c8390ef9f8650e3f0095bb8f6\142-1438843822508\com.ibm.team.repos
itory.service.diagnostic.diagnostictests.query.BaseDiagnosticTestResultItemQueryModel$ManyDiagnosticTestResultItemQueryModel: No such file or director
y
Catalina\localhost\rm\eclipse\configuration\org.eclipse.osgi\bundles\29\data\ae262f3c8390ef9f8650e3f0095bb8f6\142-1438843822508=:
total 0
Today I have to do this task again. Unix rm -R no longer works, but what you suggested "rmdir /Q/S" worked from any level ! :) |
2 other answers
![]()
This worked on Windows Server 2012:
I've run into this problem numerous times and the solution I found (that works for a Windows environment) is outlined below:
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.