public function delete()
	{
		//build the delete query string
		$sql = $this->buildDelete();

		//set the value of the query_string
		$this->responseObject->setQueryString($sql);

		//time query execution
		$query_start_time = microtime(true);

		//execute the query string
		$result = $this->connector->execute($sql);

		$query_stop_time = microtime(true);
		$query_excec_time = $query_stop_time - $query_start_time;
		$this->responseObject->setQueryTime($query_excec_time);

		//put this in try...catch block for better error handling
		try{

			//throw error if there was an error perfrorming this query
			if ( $result === false ) 
			{
				//throw excepton
				throw new MySQLException(get_class(new MySQLException) . ' ' .$this->connector->lastError() . '<span class="query-string"> (' . $sql . ') </span>');
				
			}
			
		}

		//diplay error message
		catch(MySQLException $MySQLExceptionObject){

			//display error message
			$MySQLExceptionObject->errorShow();

		}


		//if delete was successfull, get and return the number of affected rows
		$this->responseObject
			->setAffectedRows($this->connector->affectedRows());

		return $this->responseObject;

	}