keras/src/callbacks/backup_and_restore.py/BackupAndRestore/on_train_end
class BackupAndRestore:    def on_train_end(self, logs=None):
        if self.delete_checkpoint and file_utils.exists(self.backup_dir):
            file_utils.rmtree(self.backup_dir)