next up previous index
Next: Converting the Base Year Up: File-Based Cache Previous: What is Written to   Index

Deleting the File-Based Cache

The delete_run script in opus_core/services/run_manager directory provides an easy way to delete cached run data while maintaining the consistency of the services database. This is useful, since a simulation can produce multiple gigabytes of data.

To delete all data for run with run_id 42, and remove that run's information from the available_runs table in the services database use:

python delete_run.py --run-id 42

To delete a set of years without removing the information from the services database, use the --years-to-delete option. This option takes an arbitrary Python expression that creates a list of integers. For instance, to remove the cached data for years 2001 through 2029 use:

python delete_run.py --run-id 42 --years-to-delete range(2001,2030)


next up previous index
Next: Converting the Base Year Up: File-Based Cache Previous: What is Written to   Index
info (at) urbansim.org