Function delpath
Deletes the file or directory recursively
Deletes the file or directory. If the root is a directory then all its
content is deleted recursively.
Input:
- root (string): Path to file or root directory to delete.
Output:
- status (boolean): True on success.