public void doDelete ( StaplerRequest request , StaplerResponse response ) throws IOException , ServletException { BookStore . theStore . getItems ( ) . remove ( getSku ( ) ) ; response . sendRedirect ( request . getContextPath ( ) + ' ' ) ; }
Defines an action to delete this book from the store .