diff --git a/app/lib/actions/katello/repository/destroy.rb b/app/lib/actions/katello/repository/destroy.rb
index <HASH>..<HASH> 100644
--- a/app/lib/actions/katello/repository/destroy.rb
+++ b/app/lib/actions/katello/repository/destroy.rb
@@ -18,17 +18,11 @@ module Actions
           end
 
           plan_action(ContentViewPuppetModule::Destroy, repository) if repository.puppet?
-
-          pulp2_destroy_action =
-          sequence do
-            create_action = plan_action(
-              PulpSelector,
+          plan_action(PulpSelector,
               [Pulp::Repository::Destroy, Pulp3::Orchestration::Repository::Delete],
               repository,
               SmartProxy.pulp_master,
               repository_id: repository.id)
-          end
-
           plan_self(:user_id => ::User.current.id)
           sequence do
             if repository.redhat?
Fixes #<I> - cleaned up rubocop warnings