HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Uninstall -- Any alternative to manually deleting thousands of files in hundreds of folders?

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#63128 (In Topic #13693)
Avatar

Fan in action

I was going to try the newest version of OCP, and found although it was loaded in a different subdirectory than the previous test (early 2009), I think the old version ran. So I'm trying to delete the old version, since I never really used it anyway. I ran uninstall.php from the base directory, but all it appeared to do was delete content from the database – I expected it to take care of deleting the thousands and thousands of files (in hundreds of subdirectories) that seem characteristic of current PHP programming style.

But it didn't, and now it looks like I'm stuck deleting all the files manually via FTP – which doesn't allow deletion of any non-empty directories, so I have to go to the lowest subdirectory level and start clearing out files and slowly work back up the directory tree, level-by-level.

Do you know any way to expedite the deletion process? At my current pace it's going to take many hours.

Thanks.
Back to the top
 
Posted
Rating:
#63129
Avatar

Community saint

do you have access to cPanel? Most cPanels have a File Manager and there you could select all the folders and delete at once. It's what I do. I only use FTP to upload, myself. Everything else I do via cPanel.

Eric DeMars . com
My electronic portfolio and personal site. Uses ocPortal!
Back to the top
 
Posted
Rating:
#63132
Avatar

Well-settled

rsteer said

…now it looks like I'm stuck deleting all the files manually via FTP - which doesn't allow deletion of any non-empty directories…
You could try using FileZilla as an ftp client. It's capable of deleting directories recursively, and I'm pretty sure that feature doesn't depend on which ftp program the server is running. I've deleted several instances of OCP with Filezilla and never had any issues. I wouldn't push it though, so start with deleting one zone at a time.
CU,
Low
Back to the top
 
Posted
Rating:
#63193
Avatar

Community saint

rsteer, do you have root access to your server or shell to your site?

If yes, you could use putty or other access program and then go the the directory that contains the old version, for example, once at root, do (cd /home/username/public_html) and hit enter. Then enter the following (rm -Rf ocpdirectoryname) Don't use the parenthesis, and replace username with your actual username and ocpdirectoryname with the actual name that contains your installation of your old OCP installation.

Next, delete your old database and create a new one for the new installation. Add a user to the new database and give them complete access.

Now do your new installation.

btw, you can do what Eric suggested, but depending on how your server is set up, you may not be able to remove all files, the root command I listed above used the f to force a recursive removal of the folder, all sub folder and all files.

Hope that helped. :)

btw, If you are unsure of how to use root, or you have folders you want to save, don't use it to remove the directory. Everything there is gone. There is no way to recover the data.
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: