- def delete(self, commit = True):
- assert 'boot_state' in self
-
- # Clean up miscellaneous join tables
- for table in ['nodes', 'boot_states']:
- self.api.db.do("DELETE FROM " + table + \
- " WHERE boot_state = %(boot_state)s",
- self)
-
- if commit:
- self.api.db.commit()
-