# API

Stop exposing the PocketBase REST API, added by [`vela enable api`](/enable/api).

### Syntax

```
$ vela disable api
```

### Options

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

### What it removes

The API handler in `hooks.server.ts`, so `/api` stops serving the PocketBase API:

```ts
export const handle = handlePocketbase({
    api: {
        enabled: false
    }
});
```

Any SvelteKit routes of your own in `src/routes/api` keep working — only the PocketBase routes that took precedence over them are withdrawn. Disable [API keys](/disable/api-keys) first if they are enabled.