protected function delete($payload)
    {
        $id = $payload[0];
        $this->touchIndex(function (&$data) use ($id) {
            foreach ($data['reserved'] as $key => $payload) {
                if ($payload[0] === $id) {
                    unset($data['reserved'][$key]);
                    break;
                }
            }
        });
        unlink("$this->path/job$id.data");
    }
protected function delete($payload)
    {
        $id = $payload[0];
        $this->touchIndex(function (&$data) use ($id) {
            foreach ($data['reserved'] as $key => $payload) {
                if ($payload[0] === $id) {
                    unset($data['reserved'][$key]);
                    break;
                }
            }
        });
        unlink("$this->path/job$id.data");
    }
protected function delete ( $ payload ) { $ id = $ payload [ 0 ] ; $ this -> touchIndex ( function ( & $ data ) use ( $ id ) { foreach ( $ data [ 'reserved' ] as $ key => $ payload ) { if ( $ payload [ 0 ] === $ id ) { unset ( $ data [ 'reserved' ] [ $ key ] ) ; break ; } } } ) ; unlink ( "$this->path/job$id.data" ) ; }
Deletes reserved message.

@param array $payload
Deletes reserved message .