summaryrefslogtreecommitdiff
path: root/app/services/pages/delete_service.rb
blob: 7408943e78c5a7d3c118b38d738ca3550956a2f1 (plain)
1
2
3
4
5
6
7
8
9
10
# frozen_string_literal: true

module Pages
  class DeleteService < BaseService
    def execute
      project.remove_pages
      project.pages_domains.destroy_all # rubocop: disable Cop/DestroyAll
    end
  end
end