---
layout: doc
title: filesystem / rmdir
---
# rmdir

### NAME

    rmdir() - remove a directory

### SYNOPSIS

    int rmdir( string dir );

### DESCRIPTION

    Remove directory 'dir'.

### RETURN VALUE

    Returns nonzero for success, zero (0) for failure.

### SEE ALSO

    rm(3), mkdir(3), link(3)

