# HIMPORT DISCARD

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

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

```
HIMPORT DISCARD name
```

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

`HIMPORT DISCARD` forgets the list of field names stored under `name` by
[HIMPORT PREPARE](https://docs.hotkv.com/commands/himport-prepare/index.md). Hashes already made from it are
not changed.

## Return value

Integer `1` if the list existed, `0` if not, in RESP2 and RESP3.

## Examples

```
127.0.0.1:6379> HIMPORT DISCARD person
(integer) 1
127.0.0.1:6379> HIMPORT SET account:5 person a b c
(error) ERR no such fieldset
127.0.0.1:6379> HIMPORT DISCARD person
(integer) 0
```

## Compatibility

A Redis 8.10 command.

## See also

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