Unable to remove old GAMBAS3 Project folders

Post your Gambas programming questions here.
Post Reply
User avatar
Askjerry
Posts: 68
Joined: Saturday 18th August 2018 9:06pm
Location: Kyle, Texas, USA
Contact:

Unable to remove old GAMBAS3 Project folders

Post by Askjerry »

On my Raspberry Pi I have a directory called "GAMBAS FILES", inside of this are several folders, each with a project I was working on.

I had been working with a Terabloom fan system and have three directories in the GAMBAS Files main directory...

/home/pi/GAMBAS FILES
  • Terabloom_Slider_Test_V2
  • Terabloom_V001
  • Terabloom_V1
  • Terabloom_01
The only file I want is the Terabloom_Slider_Test_V2 folder... the others are obsolete... they are not the only ones... but enough for this post...

If I click on Terabloom_01 and tell it RENAME, I can rename it to "Delete_01" with no problem... but if I right click and select MOVE TO TRASH, or I hit delete... it will not let me. It says "PERMISSION DENIED"

So what do i need to do in order to clean up my system and remove the old experimental or obsolete folders and files???

Thanks,
Jerry
User avatar
BruceSteers
Posts: 1828
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: Unable to remove old GAMBAS3 Project folders

Post by BruceSteers »


# sudo rm -rf /path/to/folder


should force delete 'folder' and all contents

or

# sudo xdg-open /path/to/folder


should open file manager with root permissions
If at first you don't succeed , try doing something differently.
BruceS
User avatar
Askjerry
Posts: 68
Joined: Saturday 18th August 2018 9:06pm
Location: Kyle, Texas, USA
Contact:

Re: Unable to remove old GAMBAS3 Project folders

Post by Askjerry »

Untitled.png
Untitled.png (88.67 KiB) Viewed 1919 times
Does not seem to be working.

Any suggestions?
User avatar
BruceSteers
Posts: 1828
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: Unable to remove old GAMBAS3 Project folders

Post by BruceSteers »

/DELETE_01 does not exist

It's either...
$ cd '~/GAMBAS FILES'
$ sudo rm -rf ./DELETE_01 # note the full stop ./

or use the full path
$ sudo rm -rf '~/GAMBAS FILES/DELETE_01'


start the path with ./ for current dir

/ is the root of the system not your current dir
./ is current dir
../ is parent dir.
~ is home dir
If at first you don't succeed , try doing something differently.
BruceS
User avatar
BruceSteers
Posts: 1828
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: Unable to remove old GAMBAS3 Project folders

Post by BruceSteers »

or just
sudo xdg-open $HOME
or
sudo xdg-open ~

should open a file browser, you can use the mouse from then on.
If at first you don't succeed , try doing something differently.
BruceS
User avatar
Askjerry
Posts: 68
Joined: Saturday 18th August 2018 9:06pm
Location: Kyle, Texas, USA
Contact:

Re: Unable to remove old GAMBAS3 Project folders

Post by Askjerry »

I used this one... $ sudo rm -rf ./DELETE_01 and it worked just fine!

I found out something odd... when using by Linux desktop I can just delete folders and copy into them normally. But on the Raspberry Pi I can't delete unless I use this command line... and I can't copy things into the folder unless it is open in GAMBAS and I drag into it from another instance of the file menu.

I'm wondering what the difference is... and if it is possible to make the file system on the Raspberry Pi work globally like the desktop???

Thanks for your help!
Jerry
Post Reply