code: def discard_last(self, indices):
          
          for i in indices:
              self.buffer_expire[i] = self.buffer_expire[i][:-1]
              self.buffer[i] = self.buffer[i][:-1]
docs: Discard the triggers added in the latest update