geoip-purge
Deletes older version database files from the GeoIP service.
Command properties
| Item | Description |
|---|---|
| Command type | Driver query |
| Required permission | None |
| License usage | Not counted |
| Parallel execution | Not supported |
| Distributed execution | Not supported |
Syntax
geoip-purge [profile=STR]
Options
profile=STR- GeoIP connect profile identifier. If omitted, runs against all registered GeoIP type connect profiles.
Output fields
| Field | Type | Description |
|---|---|---|
event_time | timestamp | Time when the deletion operation completed |
Error codes
Parse errors
| Error code | Message | Description |
|---|---|---|
| 209800 | No available GeoIP profile found. | No GeoIP connect profiles are registered or accessible |
| 209801 | Specify valid GeoIP profile. | The profile option is required but not specified |
Runtime errors
N/A
Description
The geoip-purge command deletes unused older version database files from the GeoIP service. It keeps only the latest version of the database and removes previous data to free up disk space.
When you specify the profile option, the deletion is performed on the GeoIP service associated with that connect profile. If you omit the profile option, the deletion is performed against all registered GeoIP connect profiles.
Examples
-
Delete old GeoIP data
geoip-purgeDeletes older version database files from all registered GeoIP connect profiles.
-
Delete old data using a specific connect profile
geoip-purge profile=geoip_mainDeletes older version database files from the GeoIP service associated with the
geoip_mainconnect profile.