This command deletes a file or an empty> directory. You can not delete a directory which contains files or subdirectories.
If the file or the directory can not be deleted an error is raised. This may happen for example if the program trying to delete the file or directory does not have enough permission.
See DELTREE for a more powerful and dangerous delete.