.\" -*- coding: UTF-8 -*- .\" Copyright 1992, Drew Eckhardt .\" Copyright 1993, Ian Jackson .\" Copyright, the authors of the Linux man-pages project .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH rmdir 2 "8 février 2026" "Pages du manuel de Linux 6.18" .SH NOM rmdir \- Supprimer un répertoire .SH BIBLIOTHÈQUE Bibliothèque C standard (\fIlibc\fP,\ \fI\-lc\fP) .SH SYNOPSIS .nf \fB#include \fP .P \fBint rmdir(const char *\fP\fIpath\fP\fB);\fP .fi .SH DESCRIPTION \fBrmdir\fP() supprime un répertoire, lequel doit être vide. .SH "VALEUR RENVOYÉE" En cas de succès, zéro est renvoyé. En cas d'erreur, \fB\-1\fP est renvoyé et \fIerrno\fP est définie pour préciser l'erreur. .SH ERREURS .TP \fBEACCES\fP Write access to the directory containing \fIpath\fP was not allowed, or one of the directories in the path prefix of \fIpath\fP did not allow search permission. (See also \fBpath_resolution\fP(7).) .TP \fBEBUSY\fP \fIpath\fP is currently in use by the system or some process that prevents its removal. On Linux, this means \fIpath\fP is currently used as a mount point or is the root directory of the calling process. .TP \fBEFAULT\fP \fIpath\fP pointe en dehors de l'espace d'adressage accessible. .TP \fBEINVAL\fP \fIpath\fP has \fI.\fP as last component. .TP \fBELOOP\fP \fIpath\fP contient une référence circulaire (à travers un lien symbolique) .TP \fBENAMETOOLONG\fP \fIpath\fP était trop long. .TP \fBENOENT\fP Un des répertoires du chemin d'accès \fIchemin\fP n'existe pas ou est un lien symbolique pointant nulle part. .TP \fBENOMEM\fP La mémoire disponible du noyau n'était pas suffisante. .TP \fBENOTDIR\fP \fIpath\fP, or a component used as a directory in \fIpath\fP, is not, in fact, a directory. .TP \fBENOTEMPTY\fP \fIpath\fP contains entries other than \fI.\fP and \fI..\fP; or, \fIpath\fP has \fI..\fP as its final component. POSIX.1 also allows \fBEEXIST\fP for this condition. .TP \fBEPERM\fP The directory containing \fIpath\fP has the sticky bit (\fBS_ISVTX\fP) set and the process's effective user ID is neither the user ID of the file to be deleted nor that of the directory containing it, and the process is not privileged (Linux: does not have the \fBCAP_FOWNER\fP capability). .TP \fBEPERM\fP The filesystem containing \fIpath\fP does not support the removal of directories. .TP \fBEROFS\fP \fIpath\fP refers to a directory on a read\-only filesystem. .SH NORMES POSIX.1\-2024. .SH HISTORIQUE POSIX.1\-2001, SVr4, 4.3BSD. .SH BOGUES Des problèmes dans le protocole sous\-jacent à NFS peuvent provoquer la disparition inattendue de répertoires encore utilisés. .SH "VOIR AUSSI" \fBrm\fP(1), \fBrmdir\fP(1), \fBchdir\fP(2), \fBchmod\fP(2), \fBmkdir\fP(2), \fBrename\fP(2), \fBunlink\fP(2), \fBunlinkat\fP(2) .PP .SH TRADUCTION La traduction française de cette page de manuel a été créée par Christophe Blaess , Stéphan Rafin , Thierry Vignaud , François Micaux, Alain Portal , Jean-Philippe Guérard , Jean-Luc Coulon (f5ibh) , Julien Cristau , Thomas Huriaux , Nicolas François , Florentin Duneau , Simon Paillard , Denis Barbier , David Prévot , Frédéric Hantrais et Jean-Philippe MENGUAL . .PP Cette traduction est une documentation libre ; veuillez vous reporter à la .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License version 3 .UE concernant les conditions de copie et de distribution. Il n'y a aucune RESPONSABILITÉ LÉGALE. .PP Si vous découvrez un bogue dans la traduction de cette page de manuel, veuillez envoyer un message à .MT debian-l10n-french@lists.debian.org .ME .