cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
6065
Views
20
Helpful
15
Replies

Prime Infrastructure 2.2 can't delete file name too long

bkoch1
Level 1
Level 1

I'm trying to delete older application backups in the CLI, and it says I can't because the filepath is too many characters.

Ex. prime/admin# delete disk://defaultRepo/prime-150916-0330__VER2.2.0.0.158_BKSZ126G_CPU16_MEM4G_RAM15G_SWAP15G_APP_CK2774132844.tar.gpg
                    ^
% param string too long detected at '^' marker.

So, how do I delete these files?

15 Replies 15

facepages111
Level 1
Level 1

i succeed using Long Path Tool

How can you use the LONG Path tool to delete the too long files in Prime 2.2

donglei888999
Spotlight
Spotlight

I have the same problem with you, cannot delete the too long backup data,  and I cannot find any "rename" or "mv" command to change the files name shorter....    how was your solve such issues?

JASON BOYERS
Level 5
Level 5

If you use the "root" command, after enabling it with "root_enable", you can go into the underlying Linux shell.  From there, go to the /localdisk directory.  Change to whichever directory the file is in, then do a "rm filename".  Just ran into the same issue, and this worked.

Hi Jason, Appreciated your help,  works for me too....

Long PathTool is a software that will let you easily delete, copy or rename long path files.

Note that the "root" command has been changed to the "shell" command as of PI 3.0.

A couple of people have mentioned using the Long Path Tool. If there is a way that you know of to access the file structure within Prime remotely via Long Path Tool (or any other way,) please share those steps.  To my knowledge, it isn't possible, but would love to be wrong on this.

barnessweb
Level 1
Level 1

Try using Long Path Tool as it works better.

jeams.doland
Level 1
Level 1


“Long Path Tool” is very helpful for this error !
You can use to solve this problem


Long Path Tool help me a lot when i have an issue like file deleting or renaming the file. Also good to use if file name and file extension is too long.

I used to have similar problems too, but after using "long path tool" everything was solved. Try this software and you would be glad you did.


Long path tool is the very good program for error, unlock solution.
Try it and solve your problem.
I used long path tool and I solve my error, unlock problem solution.

pinjormd2
Level 1
Level 1

Long Path Tool is the perfect utility that can solve all the long path issues. Download this software online.

Otar Petrosov
Level 1
Level 1

Do not use other programs use SSH, Root acces and Linux commands.

xprime/admin# root_enable
Password :
Password Again :

Root enabled

xprime/admin# root
Enter root password :
Starting root bash shell ...


ade # cd /localdisk/defaultRepo/

ade # ls -lh
total 3.1G
-rw-rw-rw- 1 root gadmin 3.1G Jul  9 03:50 xprime-170709***********************.tar.gpg

ade # rm xprime-170709***********************.tar.gpg

DONE !

Thanks mate,

It worked for me, after few hours wasted I run into your solution and saved my day

This worked for me. Thanks!

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: