diff --git a/lib/special_route_publisher.rb b/lib/special_route_publisher.rb index 2eaea6bdb2..1ac6da0df8 100644 --- a/lib/special_route_publisher.rb +++ b/lib/special_route_publisher.rb @@ -48,12 +48,6 @@ def self.routes title: "Cookies on GOV.UK", description: "You can choose which cookies you're happy for GOV.UK to use.", }, - { - content_id: "50aa0d27-ea4a-49b7-a1e6-98abd1115f60", - base_path: "/help.json", - title: "Help using GOV.UK", - description: "Find out about GOV.UK, including the use of cookies, accessibility of the site, the privacy notice and terms and conditions of use rendered in JSON format here.", - }, { content_id: "3c991cea-cdee-4e58-b8d1-d38e7c0e6327", base_path: "/random", diff --git a/lib/tasks/publishing_api.rake b/lib/tasks/publishing_api.rake index ecdcccf381..53f65e5a4b 100644 --- a/lib/tasks/publishing_api.rake +++ b/lib/tasks/publishing_api.rake @@ -27,4 +27,10 @@ namespace :publishing_api do I18n.locale = :cy CalendarPublisher.new(Calendar.find("bank-holidays"), slug: "gwyliau-banc").publish end + + desc "Unpublish help.json" + task unpublish_help_json: :environment do + api_client = GdsApi::PublishingApi.new(Plek.find("publishing-api"), bearer_token: ENV["PUBLISHING_API_BEARER_TOKEN"]) + api_client.unpublish("50aa0d27-ea4a-49b7-a1e6-98abd1115f60", type: "redirect", alternative_path: "/help", discard_drafts: true) + end end