// Deletes the specified thing type. You cannot delete a thing type if it has
// things associated with it. To delete a thing type, first mark it as deprecated
// by calling DeprecateThingType, then remove any associated things by calling
// UpdateThing to change the thing type on any associated thing, and finally use
// DeleteThingType to delete the thing type.
Deletes the specified thing type. You cannot delete a thing type if it has
things associated with it. To delete a thing type, first mark it as deprecated
by calling DeprecateThingType, then remove any associated things by calling
UpdateThing to change the thing type on any associated thing, and finally use
DeleteThingType to delete the thing type.
// Deletes the specified thing type . You cannot delete a thing type if it has // things associated with it . To delete a thing type first mark it as deprecated // by calling DeprecateThingType then remove any associated things by calling // UpdateThing to change the thing type on any associated thing and finally use // DeleteThingType to delete the thing type .
func (c *Client) DeleteThingType(ctx context.Context, params *DeleteThingTypeInput, optFns ...func(*Options)) (*DeleteThingTypeOutput, error) {
	if params == nil {
		params = &DeleteThingTypeInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "DeleteThingType", params, optFns, addOperationDeleteThingTypeMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*DeleteThingTypeOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) DeleteThingType ( ctx context . Context , params * DeleteThingTypeInput , optFns ... func ( * Options ) ) ( * DeleteThingTypeOutput , error ) { if params == nil { params = & DeleteThingTypeInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationDeleteThingTypeMiddlewares ) if err != nil { return nil , err } out := result . ( * DeleteThingTypeOutput ) out . ResultMetadata = metadata return out , nil }
Deletes the specified thing type.
Deletes the specified thing type .