#NEWLINE# def destroy( self , volume ) : #NEWLINE# #INDENT# filesystem = self . get ( volume ) #NEWLINE# d = filesystem . snapshots ( ) #NEWLINE# def got_snapshots( snapshots ) : #NEWLINE# #INDENT# return gatherResults ( list ( ( zfs_command ( self . _reactor , [ b'destroy' , ( b'%s@%s' % ( filesystem . name , snapshot . name ) ) ] ) for snapshot in snapshots ) ) ) #NEWLINE# #UNINDENT# d . addCallback ( got_snapshots ) #NEWLINE# d . addCallback ( ( lambda _ : zfs_command ( self . _reactor , [ b'destroy' , filesystem . name ] ) ) ) #NEWLINE# return got_snapshots