public function removeRow($numberOrRow) {
        if ($numberOrRow instanceof Row) {
            $id = $numberOrRow->getRowNumber();
        } elseif (Row::isValidNumber($numberOrRow)) {
            $id = $numberOrRow;
        } else {
            throw new \InvalidArgumentException('Invalid row identifier');
        }

        $putData = array(
            'method' => 'shiftRow',
            'index' => $id - 1,
            'amount' => 1
        );

        $setId = $this->getDataSet()->id;
        $result = $this->getClient()->put('data/alter/' . $setId, $putData);

        return (isset($result['success']) && $result['success']);
    }