# $prune

Removes the members who were inactive for the given days. The bot needs Kick Members. Bot Creator function, not in the official BDFD wiki.

## Syntax

```
$prune[(days);(guildID);(includeRoles);(reason);(returnCount)]
```

## Parameters

| Parameter | Description |
|---|---|
| `days` | Optional. 1 to 30, 7 by default. |
| `guildID` | Optional. The ID of the server. Empty or absent: the current server. |
| `includeRoles` | Optional. Role IDs separated by commas. |
| `reason` | Optional. Reason recorded in the server audit log (512 characters at most). |
| `returnCount` | Optional. `yes` returns how many members were removed. |

## Return Value

- The number of members removed with `returnCount` yes, nothing otherwise.

## Example

```bdfd
$prune[30;;;Inactive;yes]
```
