code: def delete_prefix(self, prefix):
          
          delete_request = self._build_delete_request(
              prefix,
              range_end=utils.increment_last_byte(utils.to_bytes(prefix))
          )
          return self.kvstub.DeleteRange(
              delete_request,
              self.timeout,
              credentials=self.call_credentials,
              metadata=self.metadata
          )
docs: Delete a range of keys with a prefix in etcd.