UNSETFILES(1) General Commands Manual UNSETFILES(1)

# [NAME](#NAME)

unsetfiles - Remove SELinux file security contexts.

# [SYNOPSIS](#SYNOPSIS)

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

# [DESCRIPTION](#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](#OPTIONS)

[**-h**](#h)

Show usage information and exit.

[**-n**](#n)

Do not actually remove any SELinux file security contexts.

[**-r**](#r)

Remove SELinux file security contexts recursive.

[**-v**](#v)

Be verbose about performed actions.

[**-x**](#x)

Do not cross filesystem boundaries.

# [ARGUMENTS](#ARGUMENTS)

[*pathname* ...](#pathname)

One or more path names to operate on.

# [SEE ALSO](#SEE_ALSO)

[**restorecon**(8)](/man/enterprise-packages/policycoreutils/restorecon.8), [**setfiles**(8)](/man/enterprise-packages/policycoreutils/setfiles.8)

# [AUTHORS](#AUTHORS)

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

December 2023 Security Enhanced Linux

---

Document: unsetfiles(1) from policycoreutils 3.11-r2 (Chainguard OS)
Source: https://github.com/SELinuxProject/selinux.git
