I have noticed that I find no means of deleting an airline in the admin panel Add & Edit Airlines. This is also true with Edit Airports & Aircraft.
NOTE: I did not have ANY pilots, aircraft, flights, or any other data added to the airline I deleted. It was merely an erroneous addition that I wished to remove immediately. I have NO idea how deleting an airline that has data with it will effect other aspects of phpvms. With that said…
I use phpMyAdmin, your method may varry some from this:
-
Open your mySQL databases and open your phpvms_*** database.
-
Locate and open the table named “phpvms_airlines”.
-
Check Box the airline you wish to remove.
-
Click Delete button.
-
Close phpMyAdmin.
-
Open the your root phpvms folder on your website server.
-
Back up your /core/cache/phpvms_all_airlines.cache file.
-
Open your /core/cache/phpvms_all_airlines.cache in edit mode with an good code editing program.
-
Airlines are listed from left to right in order from newest to oldest.
-
Find the first “i:” to the left of the airline you wish to delete.
-
Find the first “{” to the left of that “i:”.
-
Highlight from that point to the right up to but not including the next “{” in the line of code.
-
Delete.
-
Go all the way to the end of that line of code and delete the last “}”.
-
Save.
I also did the following because I only had one other airline (with no data stored on it that I wasn’t willing to lose if I made an error) I have no idea if it will effect anything longterm. With that being said:
Deleted everything on that line of code prior to the first “{”.
It left me with only this on that same line:
{i:1;O:8:“stdClass”:4:{s:2:“id”;s:1:“1”;s:4:“code”;s:3:“FTC”;s:4:“name”;s:22:“Flight Training Center”;s:7:“enabled”;s:1:“1”;}
Hope that helped.