code: def rmpart(self, disk, number):
          
          args = {
              'disk': disk,
              'number': number,
          }
  
          self._rmpart_chk.check(args)
  
          response = self._client.raw('disk.rmpart', args)
  
          result = response.get()
  
          if result.state != 'SUCCESS':
              raise RuntimeError('failed to remove partition: %s' % result.stderr)
docs: Remove partion from disk
          :param disk: device path (/dev/sda, /dev/sdb, etc...)
          :param number: Partition number (starting from 1)