You can modify or delete a Thing Specification Language (TSL) module or a TSL feature in the IoT Platform console. This topic describes how to modify or delete a TSL module.
Prerequisites
A TSL model is added. For more information, see Add a TSL feature or Batch add TSL features.Warning After you delete or modify a feature in a TSL model, communication services that are related to the TSL model become unavailable and your business is interrupted. Proceed with caution.
Change the name of a custom TSL module
Important You cannot change the identifier of a custom TSL module.
- Log on to the IoT Platform console.
- On the Overview page, find the instance that you want to manage and click the instance name to go to the Instance Details page. Important Enterprise Edition instances are available in the China (Shanghai) and Japan (Tokyo) regions. If the Enterprise Edition instances are unavailable in the region that you select, skip this step.

- In the left-side navigation pane, choose . In the product list, find the product that you want to manage and click View in the Actions column.
- On the Product Details page, click the Define Feature tab, and then click Edit Draft.
- On the left part of the Edit Draft page, move the pointer over a custom module and click the Edit icon to the right of the name of the custom module, as shown in the following figure.

- In the Modify Module dialog box, change the name of the module and click OK. The name must be 4 to 30 characters in length, and can contain letters, digits, and underscores (_).
- Publish the TSL model. Important An updated TSL model takes effect only after you publish the TSL model.
Modify a TSL feature
Important After you add a TSL feature, you cannot change the identifier, type, data type, or event type of the TSL feature.
- On the Product Details page, click the Define Feature tab, and then click Edit Draft.
- On the left part of the Edit Draft page, click Default Module or the name of a custom module.
- On the Edit Draft page, find the TSL feature that you want to modify and click Edit in the Actions column.
- In the dialog box that appears, modify the parameters and click OK. For more information, see Add a TSL feature.
- Publish the TSL model. For more information, see Step 7 in the "Change the name of a custom TSL module" section of this topic. Important An updated TSL model takes effect only after you publish the TSL model.
Delete a custom TSL module
- On the Product Details page, click the Define Feature tab and click Edit Draft.
- On the left part of the Edit Draft page, move the pointer over a custom module, and click the Delete icon to the right of the name of the custom module, as shown in the following figure.

- In the dialog box that appears, click OK.

- Publish the TSL model. For more information, see Step 7 in the "Change the name of a custom TSL module" section of this topic. Important An updated TSL model takes effect only after you publish the TSL model.
Delete a TSL feature
Important You cannot delete a TSL feature that is specified as a required standard feature.
- On the Product Details page, click the Define Feature tab, and then click Edit Draft.
- On the left part of the Edit Draft page, click Default Module or the name of a custom module.
- On the Edit Draft page, find the feature that you want to delete and click Delete in the Actions column.
- In the dialog box that appears, click OK.
- Publish the TSL model. For more information, see Step 7 in the "Change the name of a custom TSL module" section of this topic. Important An updated TSL model takes effect only after you publish the TSL model.
Related operations
| API | Description |
|---|---|
| UpdateThingModel | Modifies a specified feature or extended information of the TSL model for a product. |
| CopyThingModel | Copies the TSL model of a product to another product. |
| PublishThingModel | Publishes the TSL model of a product. |
| DeleteThingModel | Removes a feature from the TSL model of a product. |