# /fuse/remove/{channel}

> Kind 15: a file or an empty directory, removed; the server sends exactly one message and closes the connection.

Canonical: https://provider.diverge.network/2.3.0/proxy/fuse/remove/
Specification revision: 2.3.0

The ask is kind `15` on [`/requests`](/2.3.0/proxy/requests/):

```text
[15][id_len: u16, big-endian][id …][path …]
```

The server answers on `/fuse/remove/{channel}` by sending exactly one
message and closing the connection. In the message, a first byte of `0` states that the entry was removed; a first byte of `1` is followed by a message stating why it was not.
A path that the proxy or the server closes cleanly with no message
before the close states that the ask was not served. An abrupt end of the path leaves the operation failed, and
the proxy does not ask it again, as [FUSE](/2.3.0/proxy/fuse/) provides.

- **A non-empty directory.** The caller refuses the removal of a
  non-empty directory with `1` and a message.

The ask is the target defined on [FUSE](/2.3.0/proxy/fuse/): the id of the mount and the path of the entry.

The answer is the ack defined on [FUSE](/2.3.0/proxy/fuse/).
