Tag Archives: remove
How to remove a (non-empty) directory
This is a snippet that removes a non-empty directory from the server. It’s a recursive function that deletes the directory and all its contents (files, folders and sub-folders).
Read moreHow to remove an extension from a filename
If you need for any reason to remove an extension from a filename (string) this snippet can help you. An extension in this case is everything after the last period from the whole string.
Read moreHow to remove empty values from an array
This function removes empty values from an array. This is useful if you
Read more