public function deleteAction($id)
	{
		if ( false === $this->get('security.authorization_checker')->isGranted('ROLE_ADMIN') )
			throw new AccessDeniedException();
		  
		$config = $this->get('asf_website.config.manager')->getRepository()->findOneBy(array('id' => $id));

		try {
			$this->get('asf_website.config.manager')->getEntityManager()->remove($config);
			$this->get('asf_website.config.manager')->getEntityManager()->flush();
			
			$this->get('asf_layout.flash_message')->success($this->get('translator')->trans('The website config "%name%" successfully deleted.', array('%name%' => $config->getName()), 'asf_website'));
				
		} catch (\Exception $e) {
			$this->get('asf_layout.flash_message')->danger($e->getMessage());
		}

		return $this->redirect($this->get('router')->generate('asf_website_config_list'));
	}