# alch\_delete\_value

Function `alch_delete_value` sets `''` (empty string) as the value for a given `$optionID`. Technically it's not deletion, it's an update, but still :)

## Parameters

The function takes `$optionID` as a parameter. `$optionID` should match the `id` of some field in the main [configuration object](https://github.com/AlchemyOptions/docs/tree/2c13c914d733b5a3046b1cbd4bd061c75f7de117/functions/Configuration.md).

## Return values

Returns a `boolean`: `True` if option value has changed, `false` if not or if update failed.

## Example

```php
    $optionUpdated = alch_delete_value( 'field-id' );
```

If `field-id` had a value other than an empty string before calling `alch_delete_value`, `$optionUpdated` will be `true`.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.alchemy-options.com/v0.9/functions/alch_delete_value.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
