Commit 6c0475dc authored by Katrin Leinweber's avatar Katrin Leinweber

Show how to remove licenses from history table

parent fed6566c
...@@ -927,6 +927,19 @@ license.save ...@@ -927,6 +927,19 @@ license.save
License.current # check to make sure it applied License.current # check to make sure it applied
``` ```
### Remove licenses
To clean up the [License History table](../../user/admin_area/license.md#license-history):
```ruby
TYPE = :trial?
# or :expired?
License.select(&TYPE).each(&:destroy!)
# or even License.all.each(&:destroy!)
```
## Registry ## Registry
### Registry Disk Space Usage by Project ### Registry Disk Space Usage by Project
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment