Though the SQL for a simple delete operation will remain the same no matter what language you use and what database you use, the code to connect to the database and execute the query will change based on which library you're using to connect to the database.
Just search for JDBC and how to connect to a database, you'll get a lot of good examples.