DELETE
/
data
/
{class_name}
/
by_criteria.json
curl -X DELETE \
-H "QB-Token: d9c91a69e552145f6fe24dbb40b50ac575012bba" \
-d 'score_value[gt]=5000&expert_mode=true' \
https://api.quickblox.com/data/ScoreTable/by_criteria.json
{
  "total_deleted": 2
}

You can use all search operators listed below the request.

Search operators

The request can contain all, some or none of the next search operators:

OperatorDescription
ltLess Than operator

Types: integer, float

Example:
score_value[lt]=1000
lteLess Than or Equal to operator

Types: integer, float

Example:
score_value[lte]=850
gtGreater Than operator

Types: integer, float

Example:
bonus_count[gt]=2.45
gteGreater Than or Equal to operator

Types: integer, float

Example:
bonus_count[gte]=56.443
neNot Equal to operator

Types: integer, float, string, boolean

Example:
game_mode_name[ne]=ctf
inContained IN array operator

Types: integer, float, string

Example:
game_mode_name[in]=deathmatch,rage
ninNot contained IN array operatpr

Types: integer, float, string

Example:
game_mode_name[nin]=survivor,crazy_nightmare
allALL contained IN array operator

Types: array

Example:
game_modes[all]=survivor,crazy
orOR operator


Types: integer, float, string

Example:
name[or]=sam,tim
name[or]=sam&lastname[or]=johnson

Will return records with name sam or tim.
Will return records with name sam or last name johnson.
ctnContains substring operator

Types: string

Example:
username[ctn]=son

Will return all records where username field contains son substring.
nearTypes: location

Example:
mylocation[near]=25.32,44.551;1000

Search records in a specific radius with the current position in meters. Format: {field_name}[near]=longitude,latitude;radius.

Path Parameters

class_name
string
required

Custom object class name.

Body Parameters

{custom_field_N}
string

Search records with the field that contains the specified value.

{custom_field_M}
object

Headers

QB-Token
string
required
A user or application session token. See our Authentication page to learn more about session tokens. Must be used either QB-Token or Authorization.

Responses

curl -X DELETE \
-H "QB-Token: d9c91a69e552145f6fe24dbb40b50ac575012bba" \
-d 'score_value[gt]=5000&expert_mode=true' \
https://api.quickblox.com/data/ScoreTable/by_criteria.json
{
  "total_deleted": 2
}