---
name: "debugfs_remove_recursive"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/debugfs_remove_recursive"
---

# debugfs\_remove\_recursive(9)

recursively removes a directory

## NAME

debugfs\_remove\_recursive - recursively removes a directory

## SYNOPSIS

**void debugfs\_remove\_recursive(struct dentry \*** *dentry***);**

## ARGUMENTS

*dentry*

a pointer to a the dentry of the directory to be removed. If this parameter is NULL or an error value, nothing will be done.

## DESCRIPTION

This function recursively removes a directory tree in debugfs that was previously created with a call to another debugfs function (like **debugfs\_create\_file** or variants thereof.)

This function is required to be called in order for the file to be removed, no automatic cleanup of files will happen when a module is removed, you are responsible here.

## COPYRIGHT
