💣Delete Metadata

Deleting metadata of model using HasOneMetadata

🔥 deleteMetadata

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

Example Usage


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


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

Return Type ⇒ Boolean

Last updated