The file management functions allow for the management of files and directories on the application server. You are able to find the file name from a given path and similarly you can find just the directory from a given file path. You are also able to create and remove directories and paths on the server side.
fgl_rmdir(directory)
fgl_rmdir() has a directory passed to it and deletes it if it exists. The return values for it are TRUE on success and FALSE on failure. For example:
fgl_rmdir("/docs/productX/help")
would remove this directory – /docs/productX/help. If the directory specified contains subfolders or files then the function will not remove it.
When you specify a directory name, be careful with its case.
UNIX is case-sensitive, so it will treat directories which names come in different cases as separate files.