# clear

The `clear` statement is used to delete all HTTP headers previously configured using the [set http\_header](/2.10.2/data-pipelines/extract/language/set.md) statement.

## Syntax

**`clear http_headers`**

## Details

The `clear` statement will remove all the headers currently defined, after which a new set of headers can be specified using [set http\_header](/2.10.2/data-pipelines/extract/language/set.md).

## Example

```
set http_header "Accept: application/json"
set http_header "Authorization: FFDC-4567-AE53-1234"    
set http_savefile "d:\exivity\customers.json"
buffer customers = http GET "https://demo.server.com:4444/v1/customers"

clear http_headers   # Clear headers in order to use a different Authorization: value
set http_header "Accept: application/json"
set http_header "Authorization: ABCD-EFGH-8888-1234"    
set http_savefile "d:\exivity\addresses.json"
buffer customers = http GET "https://demo.server.com:4444/v1/addresses"
```


---

# 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://olddocs.exivity.io/2.10.2/data-pipelines/extract/language/clear.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.
