Navigation: Development > Function Reference > Helpers > Utility >
Delete an existing file.
App::Utility()->deleteFile(Src)
Parameter
Description
Src
Path of the file to delete
See bellow example: echo App::Utility()->deleteFile(App::Config()->baseDir("/test.txt"));