---
title: "CFFileSecurityClearProperties(_:_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cffilesecurityclearproperties(_:_:)"
---

# CFFileSecurityClearProperties(_:_:)

Clears properties from a CFFileSecurityRef object.

## Declaration

```swift
func CFFileSecurityClearProperties(_ fileSec: CFFileSecurity!, _ clearPropertyMask: CFFileSecurityClearOptions) -> Bool
```

## Parameters

- `fileSec`: The file security properties to clear.
- `clearPropertyMask`: The file security properties to clear.

## Return Value

Return Value Returns true if the file security properties were successfully cleared, or false otherwise.

## Discussion

Discussion One common use for CFFileSecurityRef objects is to clone the permissions from one file to another. In this use, you may want to copy only a subset of the permissions. This function lets you delete the specific permissions that you do not want to change prior to applying the set of permissions to a different file.

## See Also

### Functions

- [CFAllocatorAllocateBytes(_:_:_:)](corefoundation/cfallocatorallocatebytes(_:_:_:).md)
- [CFAllocatorAllocateTyped(_:_:_:_:)](corefoundation/cfallocatorallocatetyped(_:_:_:_:).md)
- [CFAllocatorReallocateBytes(_:_:_:_:)](corefoundation/cfallocatorreallocatebytes(_:_:_:_:).md)
- [CFAllocatorReallocateTyped(_:_:_:_:_:)](corefoundation/cfallocatorreallocatetyped(_:_:_:_:_:).md)
- [CFAttributedStringGetBidiLevelsAndResolvedDirections(_:_:_:_:_:)](corefoundation/cfattributedstringgetbidilevelsandresolveddirections(_:_:_:_:_:).md)
- [CFBundleCopyLocalizedStringForLocalizations(_:_:_:_:_:)](corefoundation/cfbundlecopylocalizedstringforlocalizations(_:_:_:_:_:).md)
- [CFBundleIsArchitectureLoadable(_:)](corefoundation/cfbundleisarchitectureloadable(_:).md)
- [CFBundleIsExecutableLoadable(_:)](corefoundation/cfbundleisexecutableloadable(_:).md)
- [CFBundleIsExecutableLoadableForURL(_:)](corefoundation/cfbundleisexecutableloadableforurl(_:).md)
- [CFCopyHomeDirectoryURL()](corefoundation/cfcopyhomedirectoryurl().md)
- [CFDateFormatterCreateISO8601Formatter(_:_:)](corefoundation/cfdateformattercreateiso8601formatter(_:_:).md)
- [CFFileSecurityCopyAccessControlList(_:_:)](corefoundation/cffilesecuritycopyaccesscontrollist(_:_:).md)
- [CFFileSecurityCopyGroupUUID(_:_:)](corefoundation/cffilesecuritycopygroupuuid(_:_:).md)
- [CFFileSecurityCopyOwnerUUID(_:_:)](corefoundation/cffilesecuritycopyowneruuid(_:_:).md)
- [CFFileSecurityCreate(_:)](corefoundation/cffilesecuritycreate(_:).md)
