The deleteFieldByPath method removes the sub field(s) with the specified path.
deleteFieldByPath( path )
| Argument | Description | 
|---|---|
| path | (string) The path of the sub-field(s) to delete. | 
myField:deleteFieldByPath("path/to/subfield")
        
        |  |