public function delete_message($client, $msg)
    {
        $decodedClient = is_object($client) ? $client : json_decode($client);
        $this->sqs->deleteMessage(array(
                'QueueUrl'        => $decodedClient->{'queues'}->{'output'},
                'ReceiptHandle'   => $msg['ReceiptHandle']));
        
        return true;
    }
public function delete_message($client, $msg)
    {
        $decodedClient = is_object($client) ? $client : json_decode($client);
        $this->sqs->deleteMessage(array(
                'QueueUrl'        => $decodedClient->{'queues'}->{'output'},
                'ReceiptHandle'   => $msg['ReceiptHandle']));
        
        return true;
    }
public function delete_message ( $ client , $ msg ) { $ decodedClient = is_object ( $ client ) ? $ client : json_decode ( $ client ) ; $ this -> sqs -> deleteMessage ( array ( 'QueueUrl' => $ decodedClient -> { 'queues' } -> { 'output' } , 'ReceiptHandle' => $ msg [ 'ReceiptHandle' ] ) ) ; return true ; }
Delete the provided message from the SQS queue

Call this method from your client application after receiving a message
You must clean the SQS yourself, or you will keep processing the same messages

@param string|object $client JSON string or PHP Object created using json_decode. This contains your client SQS configuration which list your application `input` and `output` queues.
@param object $msg The message oject you received from `receive_message``

@return true Can throw an Exeception if it fails. Use try catch.
Delete the provided message from the SQS queue