# Resource

Destroy a resource generated by [`vela generate resource`](/generate/resource).

### Syntax

```
$ vela destroy resource <model>
```

```
$ vela destroy resource categories
```

The model path is the one used when the resource was generated, for example `categories` or `articles`. This drops the database collection along with the schema, so the records in it go too.

### Options

- `-y, --yes` - Skip the confirmation prompt