---
name: "_rmdir"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "0.9.25-2.1"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/_rmdir"
---

# \_rmdir(3w)

## NAME

**\_rmdir** (MSVCRT.@)

## SYNOPSIS

int CDECL  \_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

Defined in **"tchar.h"**.

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

Debug channel **"msvcrt"**.
