Ability to truncate (all) project artifacts

Is it somehow possible to truncate (all) project artifact? We disable this feature in one of our projects because for this project is useless. Is there some rake task or is it somehow possible with gitlab-rails console?

Assignee Loading
Time tracking Loading