Skip to content

PHP code snippet – How to delete file?

if(file_exists($file)) {
	unlink($file);
} 
See also  Python code snippet - How to create a numpy array with constant value?

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.