# query.clear()

Clears all rows from a query

**Introduced:** 6.0.0.15

```
query.clear( )
```

**Returns:** query

*This function does not take any arguments.*

# Examples

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

    result = qry.clear();

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

# Categories

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

# See Also

[QueryClear()](../../functions/queryclear.md), [Query](../query.md)