# QueryClear()

Clears all rows from a query

**Introduced:** 6.0.0.15

```
QueryClear( query=query );
```

**Returns:** query

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| query | query | Yes | query to clear all data. |  |

# Examples

```cfml
    qry = queryNew( "name, age", "varchar, integer",
        [
            [ "Susi", 20 ],
            [ "Urs", 24 ],
            [ "Smith", 21 ],
            [ "John", 26 ]
        ]);
    writeOutput("Before QueryClear :");
    writeDump(qry);

    result = queryClear(qry);

    writeOutput("After QueryClear :");
    writeDump(qry);
```







# Categories

[Queries](../../categories/query.md)

# See Also

[query.clear()](../objects/query/clear.md)