RemoveDirectoryFromAppW function (fileapifromapp.h)

Deletes an existing empty directory. The behavior of this function is identical to RemoveDirectory, except that this function adheres to the Universal Windows Platform app security model.

Syntax

WINSTORAGEAPI BOOL RemoveDirectoryFromAppW(
  LPCWSTR lpPathName
) noexcept;

Parameters

lpPathName

The path of the directory to be removed. This path must specify an empty directory, and the calling process must have delete access to the directory.

For information about opting out of the MAX_PATH limitation without prepending "\\?\", see the "Maximum Path Length Limitation" section of Naming Files, Paths, and Namespaces for details.

Return value

None

Requirements

   
Minimum supported client Windows 10, version 1803
Header fileapifromapp.h