Beanstalk\\Command\\Delete Class Ref ==================================== .. php:namespace:: Beanstalk\Command .. php:class:: Delete :Extends: :php:class:`Beanstalk\\Command` :Description: Delete command :Author: Joshua Dechant The delete command removes a job from the server entirely. It is normally used by the client when the job has successfully run to completion. A client can delete jobs that it has reserved, ready jobs, and jobs that are buried. .. topic:: Class Methods * :php:meth:`Delete::__construct` -- Constructor * :php:meth:`Delete::getCommand` -- Get the delete command to send to the beanstalkd server * :php:meth:`Delete::parseResponse` -- Parse the response for success or failure. .. php:method:: __construct( $id ) :Description: Constructor :param integer $id: The job id to delete .. php:method:: getCommand( ) :Description: Get the delete command to send to the beanstalkd server :returns: *string* .. php:method:: parseResponse( $response [ , $data = null , $conn = null ] ) :Description: Parse the response for success or failure. :param string $response: Response line, i.e, first line in response :param string $data: Data recieved with reponse, if any, else null :param Beanstalk\Connection $conn: BeanstalkConnection use to send the command :returns: *boolean* True if command was successful :throws: *\Beanstalk\Exception* When the job cannot be found or has already timed out :throws: *\Beanstalk\Exception* When any other error occurs