hdelete - NGSI command

Common Options

Options Description
--host value, -h value specify host or alias
--token value specify oauth token
--service value, -s value specify FIWARE Service
--path value, -p value specify FIWARE ServicePath
--help show help (default: false)

Delete all the data associated to certain attribute of certain entity

This command deletes all the data associated to certain attribute of certain entity.

ngsi hdelete [common options] attr [options]

Options

Options Description
--id value, -i value entity id
--type value, -t value entity Type
--attr value attribute name
--run run command (default: false)
--help show help (default: false)

Example

Request:

ngsi hdelete --host comet attr --type device --id device001 --attr A1

Delete historical data of a certain entity

This command deletes historical data of a certain entity.

ngsi hdelete [common options] entity [options]

Options

Options Description
--id value, -i value Entity id
--type value, -t value Entity Type
--fromDate value starting date from which data should be retrieved
--toDate value final date until which data should be retrieved
--run run command (default: false)
--help show help (default: false)

Example

Request:

ngsi hdelete --host comet entity --type device --id device001

Request:

ngsi hdelete --host quantumleap entity --id device003

Delete historical data of all entities of a certain type

This command deletes historical data of all entities of a certain type.

ngsi hdelete [common options] entities [options]

Options

Options Description
--id value, -i value Entity id
--type value, -t value Entity Type
--dropTable value drop the table storing an entity type
--fromDate value starting date from which data should be retrieved
--toDate value final date until which data should be retrieved
--run run command (default: false)
--help show help (default: false)

Example

Request:

ngsi hdelete --host comet entities

Request:

ngsi hdelete --host quantumleap entities --type Thing