> For the complete documentation index, see [llms.txt](https://docs.acpt.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.acpt.io/developers/functions/delete_acpt_block.md).

# delete\_acpt\_block

Delete a dynamic block

Delete a dynamic block by name.

### Usage

```php
delete_acpt_block('my_block');
```

### Parameters

| Parameter   | Type   | Required | Description              |
| ----------- | ------ | -------- | ------------------------ |
| `blockName` | string | Required | The block slug to delete |

### Return

| Type   | Description                                                              |
| ------ | ------------------------------------------------------------------------ |
| `bool` | `true` on success, `false` if the block does not exist or deletion fails |
