Menu
AWS IoT
Developer Guide

DeleteThingGroup

Deletes a thing group.

Request syntax:

DELETE /thing-groups/thingGroupName?expectedVersion=expectedVersion

URI Request Parameters:

Name

Type

Req?

Description

thingGroupName

ThingGroupName

yes

The name of the thing group to delete.

expectedVersion

OptionalVersion

no

The expected version of the thing group to delete.

Errors:

InvalidRequestException

The contents of the request were invalid. For example, this code is returned when an UpdateJobExecution request contains invalid status details. The message contains details about the error.

HTTP response code: 400

VersionConflictException

An exception thrown when the version of a thing passed to a command is different than the version specified with the --version parameter.

HTTP response code: 409

ThrottlingException

The rate exceeds the limit.

HTTP response code: 429

InternalFailureException

An unexpected error has occurred.

HTTP response code: 500

CLI

Synopsis:

aws iot delete-thing-group \ --thing-group-name <value> \ [--expected-version <value>] \ [--cli-input-json <value>] \ [--generate-cli-skeleton]

cli-input-json format:

{ "thingGroupName": "string", "expectedVersion": "long" }

cli-input-json fields:

Name

Type

Description

thingGroupName

string

length max:128 min:1

pattern: [a-zA-Z0-9:_-]+

The name of the thing group to delete.

expectedVersion

long

java class: java.lang.Long

The expected version of the thing group to delete.

Output:

None

On this page: