# system.kanoa.asset.deleteAssetType(assetTypeId, userId)

Deletes the assetType and all assetTypes underneath. SQL Cascade should handle deleting children and constraint will prevent the deletion of assetTypes that are in use.

---
### Parameters
**assetTypeId** `Integer`: Id of asset type to delete<br />
**userId** `Integer`: Id of user executing the function<br />

---
### Returns
**success** `Boolean`<br />
**msg** `String` # of records modified or error message<br />

---
### Example
```python
assetTypeId = 123
userId = 456
success, message = system.kanoa.asset.deleteAssetType(assetTypeId, userId)
```
