IoT / Client / delete_thing
delete_thing¶
- IoT.Client.delete_thing(**kwargs)¶
- Deletes the specified thing. Returns successfully with no error if the deletion is successful or you specify a thing that doesn’t exist. - Requires permission to access the DeleteThing action. - See also: AWS API Documentation - Request Syntax- response = client.delete_thing( thingName='string', expectedVersion=123 ) - Parameters:
- thingName (string) – - [REQUIRED] - The name of the thing to delete. 
- expectedVersion (integer) – The expected version of the thing record in the registry. If the version of the record in the registry does not match the expected version specified in the request, the - DeleteThingrequest is rejected with a- VersionConflictException.
 
- Return type:
- dict 
- Returns:
- Response Syntax- {}- Response Structure- (dict) – - The output of the DeleteThing operation. 
 
 - Exceptions- IoT.Client.exceptions.ResourceNotFoundException
- IoT.Client.exceptions.VersionConflictException
- IoT.Client.exceptions.InvalidRequestException
- IoT.Client.exceptions.ThrottlingException
- IoT.Client.exceptions.UnauthorizedException
- IoT.Client.exceptions.ServiceUnavailableException
- IoT.Client.exceptions.InternalFailureException