Skip to content


The clear.a action is the first version of the clear action in the Ultra blockchain. This action allows the creator of a group to remove all or a specified number of users from a group. The number of users removed is controlled by the nr_removals parameter.


  • The creator of the group can remove all or a specified number of users from the group.
  • The nr_users field in the groups.a table will be decremented by the number of users removed.
  • The action will fail if there are no users in the group.

Action Parameters

NameC++ TypeJavaScript TypeRemarks
creatornameStringThe account that originally created the group.
group_iduint64_tNumber/StringThe ID used to identify the group to clear the users from.
nr_removalsoptional<uint64_t>Number/nullIf not specified, all users will be removed. Otherwise, the number of users specified will be removed.
memostringStringA memo string.


  • The creator should be the original creator of the group specified by group_id.

CLI - cleos

To clear users from a group, use the following cleos command:

cleos push action clear.a '{"creator": "alice", "group_id": 0, "nr_removals" : 1, "memo": "remove one user"}' -p alice@active

JavaScript - eosjs

You can also use the following eosjs code snippet to clear users from a group:

await api.transact({
  actions: [
      "account": "",
      "name": "clear.a",
      "authorization": [{ "actor": "alice", "permission": "active" }],
      "data": {
        "creator": "alice",
        "group_id": 0,
        "nr_removals": 1,
        "memo": "remove one user"