Topic:
Taking a lot of time deleting 9000+ wells.
Description:
I have over 9000 wells in a project and am trying to delete them through DataManager > Wells > Delete. It has been working for 24 hours and it still hasn't refreshed the screen yet.
Solution:
Generally speaking, wells can take on the average of 30-60 seconds per well. Potentially, 9300 wells at 30 second/well for deletion could take 77.5 hours. Another option for deleting this many wells without accessing the project this long is the following: !!!Make sure you have a current backup before proceeding!!! 1. Find out what the home DSL for this project is, you can do this under the IESX Session Manager > Project > Update. Select your project and note the 1st DSL or Home DSL under "Selected data storage locations" for this project (the middle box). 2. There is a little work to be done before hand. Things to remember: If you had any Time/Depth's associated with these wells and you delete wells through either DataManager > Wells > Delete or through the UNIX way, you will lose them. So you want to either keep this in mind and agree that it's o.k. to lose them or go disassociate all the T/D relations from the wells so that you can preserve the T/D relations. To do this, go to Application > DataManager > Well + T/D. Scroll through the Select well(s) window, to see what wells are associated with what T/D relations. Click on the wells associated with T/D relations in the "Select well(s)" window, then press the down arrow button under Associate. The wells will fall into the "Well + active DVT" window, select each well one at a time then press the 'Disassociate' button near the bottom (sorry, you cannot select more than one at a time). 3. Now you can go delete the wells through UNIX. In an xterm window, cd to the home DSL of this project, then type 'rm *.wel' (not in quotes). Now all the well files are gone, but the project doesn't know that. Since there are 2 well databases in IESX 10.x, you will need to let each of the databases know there are no more wells. To do that, go to Application > IES Data Management > 2 - ADD data to project > 4 - Add Data in IES format > 3 - Create a NEW PROJECT INVENTORY. For item 1, toggle the right arrow key on your keyboard to change item 1 to YES, press return key, then press down arrow to go to item 2. Items 2 and 3 will stay at the default of NO and RENAME, item 4 and 5 should be toggled to REBUILD, down arrow to the EXIT, and press return key. Press the return key again. A rebuild 3-D index files screen comes up with WARNINGS, just go down to the EXIT at the bottom and press the return key. This part may take awhile since it will go through and delete each well. When it is done, it will put you back at the ADD DATA IN IES FORMAT window. Just EXIT your way back out through all the windows. Now you are back at the IESX Session window. 4. The IES well database knows it doesn't have wells, now you need to let the IESX well database know. To do this, you will need to go to iesx_util.csh, which can be found on the IESX Application Selection window. After selecting iesx_util.csh from the IESX Application Selection window, another white window will appear. It helps if you will enlarge this window at the top and bottom. Select #1 - Initialize access to a data area. It will ask you to enter your project name and password. Data Type is #1 - Exploration. Select # 82 - Clear all IESX well information. Select # 83 - List corresponding IES/IESX well names. Hopefully, you won't have anything listed here. Select #2 - Terminate Access to a data area. Select # 99 - Exit iesx_util. Now all the wells are gone and only the Time/Depth relations will remain.
Last Modified on: 01-DEC-98