The file to delete/hide moodle courses statically

The file is being written as a part of Btech Project. And the file is incompletely coded.