---
description: Deleting metadata of model using HasOneMetadata
---

# Delete Metadata

## 🔥 `deleteMetadata`

```php
// Syntax
$model->deleteMetadata(): bool
```

#### Example Usage

```php

// Delete the metadata
if ($model->deleteMetadata()) {
    echo "Metadata successfully deleted";
} else {
    echo "No metadata to delete or deletion failed";
}


$status = $model->deleteMetadata(); // return boolean

```

{% hint style="info" %}
<mark style="color:green;">Return Type ⇒</mark> <mark style="color:orange;">Boolean</mark>
{% endhint %}

