Commit 09583ed3 authored by Amy Qualls's avatar Amy Qualls

Merge branch 'cheat-license-cleanup' into 'master'

Rails snippet: delete trial licenses

See merge request gitlab-org/gitlab!66467
parents 0ff11dd2 6c0475dc
......@@ -965,6 +965,19 @@ license.save
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 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