# fd command

The fd command deletes the current item.
Control returns to TCL, or to the next item in the list, if more than
one item was requested. The default behavior of the fd command unconditionally prompts for confirmation of the deletion.

## Syntax

```
 fd
```

## Description

To recover the item, use the
TCL recover-fd command. This command *must* immediately follow the fd command.

## Example(s)

```

ed bp print.invoices.bak
top
.fd
’print.invoices.bak’ deleted.
```

## See also

- [delete command](https://d3codex.com/tcl/delete-command/)
- [Error messages](https://d3codex.com/editor/error-messages/)
- [ex command](https://d3codex.com/editor/ex-command/)
- [exk command](https://d3codex.com/editor/exk-command/)
- [fs command](https://d3codex.com/editor/fs-command/)
- [fso command](https://d3codex.com/editor/fso-command/)
- [Editor overview](https://d3codex.com/editor/editor-overview/)
- [recover-item command](https://d3codex.com/tcl/recover-item-command/)

---
Source: https://d3codex.com/editor/fd-command/ - part of the D3Codex reference.
