---
name: "unsetfiles"
section: "1"
platform: "linux"
package: "policycoreutils"
version: "3.8.1-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/unsetfiles"
---

# unsetfiles(1)

Remove SELinux file security contexts.

## NAME

unsetfiles - Remove SELinux file security contexts.

## SYNOPSIS

**unsetfiles** \[**-hnrvx**\] *pathname* ...

## DESCRIPTION

This program removes the SELinux file security contexts of files.  It can help cleaning extended file attributes after disabling SELinux.

**unsetfiles** will only work on SELinux disabled systems, since removing file security contexts is not supported by SELinux.

## OPTIONS

- **-h**

  Show usage information and exit.

- **-n**

  Do not actually remove any SELinux file security contexts.

- **-r**

  Remove SELinux file security contexts recursive.

- **-v**

  Be verbose about performed actions.

- **-x**

  Do not cross filesystem boundaries.

## ARGUMENTS

- *pathname* ...

  One or more path names to operate on.

## SEE ALSO

[**restorecon**(8)](/restorecon/8.md), [**setfiles**(8)](/setfiles/8.md)

## AUTHORS

```
Christian Göttsche (cgzones@googlemail.com)
```
