> For the complete documentation index, see [llms.txt](https://jls-organization-3.gitbook.io/projecthyper/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jls-organization-3.gitbook.io/projecthyper/features/quickstart/softdelete.md).

# softDelete

Deleting a record but the data is retained.

**Usage:**

```php
$db->{table}->softDelete($where);
```

<pre class="language-php"><code class="lang-php"><strong>$isDeleted = $db->news->softDelete(1);
</strong>// or
$isDeleted = $db->news->softDelete(array('name' => 'Test News'));
</code></pre>

**Return:**

```json
// if successful
true
// else
false
```

Looking for the other parameters?

{% content-ref url="/pages/GBigEuwxBTtPN353H08f" %}
[Parameters](/projecthyper/features/quickstart/parameters.md)
{% endcontent-ref %}
