--- title: "Delete a Row" url: https://docs.catalyst.zoho.com/en/sdk/ios/v2/cloud-scale/data-store/delete-row/ description: "Catalyst iOS SDK enables you to delete a single row from a specific Data Store table by either the Row ID or the Row Instance." last_updated: 2025-11-19T15:07:41Z service: Cloud Scale type: general related_links: - name: "Data Store" url: /en/cloud-scale/help/data-store/introduction - name: "Records" url: /en/cloud-scale/help/data-store/records - name: "Delete Row - API" url: /en/api/code-reference/cloud-scale/data-store/delete-row/#DeleteRow --- # Delete a Row Catalyst iOS SDK enables you to delete a single row from a specific [Data Store](https://docs.catalyst.zoho.com/en/cloud-scale/help/data-store/introduction) table. However, you will not be able to delete multiple rows at a time. You can delete a row from a table in any of these two methods: ### Delete a Row by passing the Row ID to the Table Instance You can delete a row from a table by passing the ROWID of the row as the argument to the `deleteRow()` method, as shown in the code syntax below. The `<DATA_STORE_INSTANCE>` used in the code syntax below is the instance defined in the [Data Store Instance page](https://docs.catalyst.zoho.com/en/sdk/ios/v2/cloud-scale/data-store/create-data-store-instance/). ```bash <DATA_STORE_INSTANCE>.deleteRow( id : Int64, completion : @escaping( ZCatalystError? ) -> Void ) ``` **Parameters**: * `id`: The [unique ROWID](https://docs.catalyst.zoho.com/en/cloud-scale/help/data-store/records/#create-a-new-record) of the row to be deleted. * `completion`: If the operation is successful, the completion block will return the details of the deleted row. Else, it will return an error. A sample code snippet is shown below: ```bash ZCatalystApp.shared.getDataStoreInstance(tableIdentifier: "1096000000002071").deleteRow(id: 3376000000171021){( error ) in //Replace this with your ROWID if let error = error{ print( "Error occurred >>> \( error )" ) } else { print("Row is successfully deleted.") } } ``` ### Delete a Row by passing the Row Instance You can delete a row from a table simply by calling the `delete()` method for the row instance. The `<ROW_INSTANCE>` used in the code syntax below is the instance defined in the [Row Instance page](https://docs.catalyst.zoho.com/en/sdk/ios/v2/cloud-scale/data-store/create-new-row-instance). ```bash <ROW_INSTANCE>.delete(completion: @escaping( ZCatalystError? ) -> Void) ``` **Parameters**: * `completion`: If the operation is successful, the completion block will return the details of the deleted rows. Else, it will return an error. A sample code snippet is shown below: ```bash ZCatalystApp.shared.getDataStoreInstance().getTableInstance(id: 1096000000002071).getRow(id: 3376000000171021){(result)in //Replace this with your ROWID switch result { case .success ( let row) : row.delete() {( error ) in if let error = error{ print( "Error occurred >>> \( error )" ) } else { print("Row is successfully deleted.") } } case .error(let error) : print("Error occurred >>> \( error )") } } ```