Description:-
perform a delete SQL query after checking whether the record is present or not.
anyone can use this method to perform other query operations.

Example:-

user_iduser_nameuser_email
1Arun[email protected]
2Sujan[email protected]
3Rohit[email protected]

SQL:-

IF EXISTS (
    SELECT *
    FROM user
    WHERE user_email = '[email protected]'
)
BEGIN

    DELETE
    FROM user
    WHERE user_email = '[email protected]'

END

Result:-

user_iduser_nameuser_email
1Arun[email protected]
2Sujan[email protected]