Page 1 of 1

Remove project files

Posted: 21 Apr 2018 22:21
by PPE02
Can I remove .cl .i and .pro files from a project???
'Remove From Project' option is dimmed.

Re: Remove project files

Posted: 22 Apr 2018 5:29
by Harrison Pratt
If you want to delete some files in a package, but not the entire package, you can open the package directory (Ctrl-E) and delete, rename or move those files.

Sometimes when I am making many revisions of a project I will make a temporary package (e.g., itemsToDelete_PACK) and Move the class, interface or resource files to that package. Then I can easily remove the entire package, test the application and easily add the package back into the project if I have removed something in error.

Re: Remove project files

Posted: 22 Apr 2018 7:54
by PPE02
Thanks for the reply Harrison.

I am probably being a bit slow!
I added a form to an existing package and later decided not to use it - so there's no specific package just for the files I want to delete. I have already deleted the files but they still appear in the project, they have a red X against them. If I cannot get rid of them I will have to re-enter what I've done so far. Not a major issue but it would be nice to know how to/be able to delete them. With the files deleted from the directory the system will not allow me to select [Build].

Thanks again Paul

Re: Remove project files

Posted: 22 Apr 2018 12:30
by Harrison Pratt
When you Build or Rebuild the project they will disappear from the project tree.

Re: Remove project files

Posted: 22 Apr 2018 15:04
by PPE02
Harrison many thanks.
Got there eventually!