Try this:

local CanNotDelete = {"Cookie"}
local DeleteItems = game.ReplicatedStorage.BinSystem:FindFirstChild("Bins")


DeleteItems.OnServerEvent:Connect(function(player)
	for i, v in ipairs(player.Backpack:GetDescendants()) do
		for x, c in pairs (CanNotDelete) do
			if tostring(c) ~= tostring(v) then
				v:Destroy()
			end
		end
	end
end)