# delete

Enable or disable deletion sync for file transfer.

## Signature

```rhai
file_transfer.delete(enable: bool) -> FileTransferBuilder
```

## Parameters

- `enable` - `true` to delete remote files not in source, `false` to keep them

## Description

When enabled, files in the destination that don't exist in the source will be deleted. Use with caution. Disabled by default.

## Example

```rhai
let conn = ssh_builder()
    .host("example.com")
    .user("ubuntu")
    .build();

// Sync directories, deleting remote files not in source
let result = conn.file_transfer()
    .delete(true)
    .push("/local/dir", "/remote/dir");
```
