# HIMPORT DISCARDALL

> Forget every list of field names prepared on this connection.

URL: https://docs.hotkv.com/commands/himport-discardall/

```
HIMPORT DISCARDALL
```

- Group: Hash
- HotKV Cloud: all plans
- On-Premise: no license needed

`HIMPORT DISCARDALL` forgets all the lists of field names that this connection
prepared with [HIMPORT PREPARE](https://docs.hotkv.com/commands/himport-prepare/index.md). Hashes already
made from them are not changed.

## Return value

Integer: the number of lists forgotten, in RESP2 and RESP3.

## Examples

```
127.0.0.1:6379> HIMPORT PREPARE a x y
OK
127.0.0.1:6379> HIMPORT PREPARE b p q
OK
127.0.0.1:6379> HIMPORT DISCARDALL
(integer) 2
127.0.0.1:6379> HIMPORT SET account:6 a 1 2
(error) ERR no such fieldset
127.0.0.1:6379> HIMPORT DISCARDALL
(integer) 0
```

## Compatibility

A Redis 8.10 command.

## See also

[HIMPORT DISCARD](https://docs.hotkv.com/commands/himport-discard/index.md),
[HIMPORT PREPARE](https://docs.hotkv.com/commands/himport-prepare/index.md), [HIMPORT](https://docs.hotkv.com/commands/himport/index.md)