Page 1 of 1

How to delete a source file

Posted: 9 Aug 2020 15:32
by jarnold30
Hi, how can I delete a source file within the VP IDE? There doesn't seem to be any way to do that.

Re: How to delete a source file

Posted: 10 Aug 2020 20:44
by Harrison Pratt
There is no way in the Vip9x or 8x IDE. The right-click context menu option to Remove from Project also is limited to Packages, text files and resources, which makes sense since deleting just one of a class's files is illogical (although it might be logical to delete an interface whose name does not correspond to a .pro file name).

When I want to delete a class's files I open Explorer (Ctrl-E) in the containing package folder, select (highlight) the class's files (.cl, .i, .pro) and press F2 (or use the context menu) to rename the selected group of files. By personal convention I rename them by inserting a leading underscore and keep them until I am certain they are no longer needed; the IDE will remove the now-missing files from the project when you rebuild the package.

Of course, I could just delete the files from Explorer, but this old scalded cat is even afraid of cold water! :-)

Re: How to delete a source file

Posted: 12 Aug 2020 9:51
by Thomas Linder Puls
I can highly recommend old cats and other ones to use a version control system. git seems to be the flavor of the year.

I agree that the simplest way to "eliminate" a file from a project is by "eliminating" it from the disk and then build again.

Re: How to delete a source file

Posted: 13 Aug 2020 16:14
by jarnold30
OK, thanks both