Deleting a Row The SQL DELETE statement can be used to delete rows from the database table. Deleting rows in a databaseGood practice is to execute DELETE statements in a TRY/CATCH block, to handler potential SQL errors related to foreigh key constraints.Example: custdata.4gl (Function delete_cust)Function delete_cust implements the code to remove a customer record from the database, from the customer number passed as parameter. The function checks is there are no remaining orders referencing the customer number, and asks the user for confimation.