---
title: vfs_fsremove
framework: Kernel
role: symbol
role_heading: Function
platforms: [macOS 10.4+]
path: kernel/1523194-vfs_fsremove
---

# vfs_fsremove

Unregister a filesystem with VFS.

## Declaration

```occ
int vfs_fsremove(vfstable_t handle);
```

## Parameters

- `handle`: Handle which was returned by vfs_fsadd.

## Return Value

Return Value 0 for success, else an error code.

## Discussion

Discussion Typically called by a filesystem Kernel Extension when it is unloaded.
