Answers.Body: <p>Unfortunately, no, there is no UI for managing event location addresses and it's not possible to disable them even in the database without dropping the link between an event and the address (table <code>civicrm_loc_block</code>).</p>
  
  <p>It could be a good feature to add to CiviCRM though.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-07-29T15:11:13.390Z
Answers.Text: I was afraid that was the case. Digging it is, then.
Answers.UserDisplayName: liblogger
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-07-29T02:51:39.493Z
Answers.LastActivityDate: 2015-07-29T02:51:39.493Z
Answers.UserDisplayName: samuelsov
Answers.Body: <p>Okay, I'm someone who should not be muddling too much in the databases... hopefully I didn't mess up anything when I went in to get rid of some incorrect addresses for our own location. </p>
  
  <p>In Events>Location, we had a few incorrect addresses in our drop-down list (4549 instead of 4945). We did not want someone to accidentally select one of these. </p>
  
  <p>To remove them this is what I did: I looked at the location in all events (in Manage Events), including past events, to make sure none of the incorrect addresses were being used. Depending on the number of events you have, this can be a bit time-consuming, but why have wrong info in your database, right? </p>
  
  <p>Through Control Panel, I went to phpMyAdmin and selected database from the lefthand side. I then did a search on the street address (with "match exact phrase" box checked, and all tables selected) to find the table this was in - civicrm_address. </p>
  
  <p>In the search results, you can scroll down to see the results in the table. I checked to make sure there was no contact_id associated with the address that I wanted to delete... identified with NULL. (It is our own address, albeit incorrect, and no one lives at the incorrect address... it's a corn field!), so no contact would have it listed. I deleted it. I then went into our CiviCRM and checked the location drop-down list in a current event (Manage Event), and incorrect address is no longer in the list.  </p>
  
  <p>Not sure if this is a recommended way to do this, but the incorrect addresses are no longer in Event Location drop-down list. </p>
  
  <p>I am not sure if I did find an incorrect address in use in a past event if I would be able to change it, or if that would cause other problems.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-04T03:00:25.307Z
Answers.LastActivityDate: 2015-08-04T03:00:25.307Z
Answers.UserDisplayName: Sandra Collin
Body: <p>Is it possible to hide/disable event location addresses? Or manage them at all without digging around in the database? </p>
  
  <p>I'm using Drupal Views to search by event location, but that doesn't help when adding locations - we have a long list of event locations, and because they're not sorted, and can't be searched, people keep adding superfluous duplicate locations, which makes the situation worse... </p>
  
Tags: <civievent><addresses><location>
Title: Clearing/disabling out-of-date event locations
ThreadText: # Clearing/disabling out-of-date event locations
  
  (Asked by: username_0 on 2015-07-07)
  
  Is it possible to hide/disable event location addresses? Or manage them at all without digging around in the database?
  
  I'm using Drupal Views to search by event location, but that doesn't help when adding locations - we have a long list of event locations, and because they're not sorted, and can't be searched, people keep adding superfluous duplicate locations, which makes the situation worse...
  
  **Tags:** civievent, addresses, location
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2015-07-29. Score: 1
  
  Unfortunately, no, there is no UI for managing event location addresses and it's not possible to disable them even in the database without dropping the link between an event and the address (table `civicrm_loc_block`).
  
  It could be a good feature to add to CiviCRM though.
  
  > **Comments:**
  > **username_0**: I was afraid that was the case. Digging it is, then.  
  
  ---
  
  ### Answer by username_2 on 2015-08-04. Score: 0
  
  Okay, I'm someone who should not be muddling too much in the databases... hopefully I didn't mess up anything when I went in to get rid of some incorrect addresses for our own location.
  
  In Events>Location, we had a few incorrect addresses in our drop-down list (4549 instead of 4945). We did not want someone to accidentally select one of these.
  
  To remove them this is what I did: I looked at the location in all events (in Manage Events), including past events, to make sure none of the incorrect addresses were being used. Depending on the number of events you have, this can be a bit time-consuming, but why have wrong info in your database, right?
  
  Through Control Panel, I went to phpMyAdmin and selected database from the lefthand side. I then did a search on the street address (with "match exact phrase" box checked, and all tables selected) to find the table this was in - civicrm\_address.
  
  In the search results, you can scroll down to see the results in the table. I checked to make sure there was no contact\_id associated with the address that I wanted to delete... identified with NULL. (It is our own address, albeit incorrect, and no one lives at the incorrect address... it's a corn field!), so no contact would have it listed. I deleted it. I then went into our CiviCRM and checked the location drop-down list in a current event (Manage Event), and incorrect address is no longer in the list.
  
  Not sure if this is a recommended way to do this, but the incorrect addresses are no longer in Event Location drop-down list.
  
  I am not sure if I did find an incorrect address in use in a past event if I would be able to change it, or if that would cause other problems.
  
  
  ---
  
  