public function unsubscribe($applicationName = NULL, $eventSources = NULL)
	{
		try {

			if (is_null($applicationName))
				throw new Exception("Application name not provided or is null", 503);
			if (is_null($eventSources))
				throw new Exception("eventSources not provided or is null", 503);

			$this->validate_event_sources($eventSources);

			$postObjParams = array(
				'eventSource' => $eventSources
			);

			$uri = "/applications/" . $applicationName . "/subscription";

			$this->ariEndpointOptions['json'] = $postObjParams;

			$result = json_decode($this->ariEndpointClient->delete($this->ariEndpointURL . $uri, $this->ariEndpointOptions)->getBody()->getContents());


			return $result;

		} catch (\GuzzleHttp\Exception\RequestException $e) {
			$this->phpariObject->lasterror = $e->getMessage();
			$this->phpariObject->lasttrace = $e->getTraceAsString();
			return (int)$e->getCode();
		} catch (\GuzzleHttp\Exception\ClientException $e) {
			$this->phpariObject->lasterror = $e->getMessage();
			$this->phpariObject->lasttrace = $e->getTraceAsString();
			return (int)$e->getCode();
		} catch (\GuzzleHttp\Exception\ServerException $e) {
			$this->phpariObject->lasterror = $e->getMessage();
			$this->phpariObject->lasttrace = $e->getTraceAsString();
			return (int)$e->getCode();
		} catch (Exception $e) {
			$this->phpariObject->lasterror = $e->getMessage();
			$this->phpariObject->lasttrace = $e->getTraceAsString();

			return FALSE;
		}

	}