$file = '/path/to/file.txt'; // Check if file exists if (file_exists($file)) { // Delete file CFile::delete($file); }In this example, the code first checks if the file exists and then deletes it using the CFile::delete() method. Package/library: The CFile class is a part of the Bitrix Framework, a commercial web development framework by Bitrix, Inc. It is widely used to build and manage websites and web applications.