delete method for joinmodel.will delete data from all tables.
tests for joinmodel.delete()