---
name: "MSVCRT__rmdir"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/MSVCRT__rmdir"
---

# MSVCRT\_\_rmdir(3w)

## NAME

**MSVCRT\_\_rmdir** (MSVCRT.@)

## SYNOPSIS

int CDECL  MSVCRT\_\_rmdir\
  (\
   const char\* *dir*\
  )

## DESCRIPTION

Delete a directory.

## PARAMS

*dir* **\[In\]**  Name of directory to delete.

## RETURNS

**Success:** **0.** The directory indicated by newdir is deleted.

**Failure:** **-1.** errno indicates the error.

## NOTES

See **[RemoveDirectoryA(3w)](/RemoveDirectoryA/3w.md)**.

## IMPLEMENTATION

Not declared in a Wine header. The function is either undocumented, or missing from Wine.

Implemented in **"dlls/msvcrt/dir.c"**.

Debug channel **"msvcrt"**.
