debugfs_remove (9) - Linux Manuals
debugfs_remove: removes a file or directory from the debugfs filesystem
debugfs_remove - removes a file or directory from the debugfs filesystem
void debugfs_remove(struct dentry
- a pointer to a the dentry of the file or directory to be removed. If this parameter is NULL or an error value, nothing will be done.
This function removes a file or directory in debugfs that was previously created with a call to another debugfs function (like debugfs_create_file or variants thereof.)