How do I remove a package with Chef? [closed]

Solution 1:

package "sun-java6-jdk" do
  action :remove
end

See http://wiki.opscode.com/display/chef/Resources#Resources-Package