#1# Copyright (c) 2006-2025 Wade Alcorn - [email protected]2# Browser Exploitation Framework (BeEF) - https://beefproject.com3# See the file 'doc/COPYING' for copying permission4#5module BeEF6module Core7module Models8#9# Table stores the http requests and responses from the requester.10#11class Http < BeEF::Core::Model12#13# Removes a request/response from the data store14#15def self.delete(id)16if id.to_s !~ /\A\d+\z/17(print_error 'Failed to remove response. Invalid response ID.'18return)19end20r = BeEF::Core::Models::Http.find(id.to_i)21if r.nil?22(print_error "Failed to remove response [id: #{id}]. Response does not exist."23return)24end25r.destroy26end27end28end29end30end313233