public function beforeDelete(
        $subject,
        \Magento\Quote\Api\Data\CartInterface $quote
    ) {
        $quoteId = $quote->getId();
        $this->daoPartialQuote->deleteById($quoteId);
        return [$quote];
    }
public function beforeDelete(
        $subject,
        \Magento\Quote\Api\Data\CartInterface $quote
    ) {
        $quoteId = $quote->getId();
        $this->daoPartialQuote->deleteById($quoteId);
        return [$quote];
    }
public function beforeDelete ( $ subject , \ Magento \ Quote \ Api \ Data \ CartInterface $ quote ) { $ quoteId = $ quote -> getId ( ) ; $ this -> daoPartialQuote -> deleteById ( $ quoteId ) ; return [ $ quote ] ; }
Delete partial payment registry data before quote deletion.

@param $subject
@param \Magento\Quote\Api\Data\CartInterface $quote
@return array

@SuppressWarnings(PHPMD.UnusedFormalParameter)
Delete partial payment registry data before quote deletion .