fixes in for table deletion / cleanup
add delete method