``` @After //@Throws(Exception::class) //--thi...
# announcements
g
Copy code
@After
    //@Throws(Exception::class) //--this can be omitted since its superfluous, this function is called reflectively
    fun deleteData() {
        /*and to enable a cool intelliJ feature, requires the SQL plugin*/ @Language("SQL")
        val sql = "delete from peserta where email = '<mailto:uzumaki_naruto@gmail.com|uzumaki_naruto@gmail.com>'"
        val connection = ds.connection;
        try {
          connection.createStatement().executeUpdate(sql) }
        }
        finally {
          connection.close()
        }
    }