---
name: "rulexdb_remove_this_item"
section: "3"
platform: "linux"
package: "librulexdb-dev"
version: "3.8.6-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/rulexdb_remove_this_item"
---

# rulexdb\_remove\_this\_item(3)

remove sequentially retrieved item from the rulex dictionary

## NAME

rulexdb\_remove\_this\_item - remove sequentially retrieved item from the rulex dictionary

## SYNOPSIS

```
#include <rulexdb.h>

int rulexdb_remove_this_item(RULEXDB *rulexdb, int item_type);
```

## DESCRIPTION

The **rulexdb\_remove\_this\_item**() function removes the last accessed via [**rulexdb\_seq**(3)](/rulexdb_seq/3.md) lexical item from the dictionary dataset defined by *item\_type* argument that may accept one of the following values:

- **RULEXDB\_LEXBASE**

  Remove item from the **Implicit** dictionary.

- **RULEXDB\_EXCEPTION**

  Remove item from the **Explicit** dictionary.

Note that the data type must be specified explicitly. The value **RULEXDB\_DEFAULT** is not allowed here.

The argument *rulexdb* references the database to deal with.

## RETURN VALUE

The **rulexdb\_remove\_this\_item**() function returns **RULEXDB\_SUCCESS** which is zero when specified item was successfully removed, positive value **RULEXDB\_SPECIAL** when this record is already deleted, or negative error code in the case of other failure.

## ERRORS

- **RULEXDB\_FAILURE**

  Referenced database has not been opened, internal data structures are corrupted or some other general failure has occurred.

- **RULEXDB\_EPARM**

  The argument *rulexdb* or *item\_type* has an invalid value.

- **RULEXDB\_EACCESS**

  The database is not opened for updating or the dataset was never accessed sequentially yet.

## SEE ALSO

[**rulexdb\_classify**(3)](/rulexdb_classify/3.md), [**rulexdb\_close**(3)](/rulexdb_close/3.md), [**rulexdb\_dataset\_name**(3)](/rulexdb_dataset_name/3.md), [**rulexdb\_discard\_dictionary**(3)](/rulexdb_discard_dictionary/3.md), [**rulexdb\_discard\_ruleset**(3)](/rulexdb_discard_ruleset/3.md), [**rulexdb\_fetch\_rule**(3)](/rulexdb_fetch_rule/3.md), [**rulexdb\_lexbase**(3)](/rulexdb_lexbase/3.md), [**rulexdb\_load\_ruleset**(3)](/rulexdb_load_ruleset/3.md), [**rulexdb\_open**(3)](/rulexdb_open/3.md), [**rulexdb\_remove\_item**(3)](/rulexdb_remove_item/3.md), [**rulexdb\_remove\_rule**(3)](/rulexdb_remove_rule/3.md), [**rulexdb\_retrieve\_item**(3)](/rulexdb_retrieve_item/3.md), [**rulexdb\_search**(3)](/rulexdb_search/3.md), [**rulexdb\_seq**(3)](/rulexdb_seq/3.md), [**rulexdb\_subscribe\_item**(3)](/rulexdb_subscribe_item/3.md), [**rulexdb\_subscribe\_rule**(3)](/rulexdb_subscribe_rule/3.md)

## AUTHOR

Igor B. Poretsky \<poretsky@mlbox.ru\>.
