delete revision when deleting resources (fix #172)