code: public void execute()
          throws MojoExecutionException, MojoFailureException
      {
  
          File flattenedPomFile = getFlattenedPomFile();
          if ( flattenedPomFile.isFile() )
          {
              getLog().info( "Deleting " + flattenedPomFile.getPath() );
              boolean deleted = flattenedPomFile.delete();
              if ( !deleted )
              {
                  throw new MojoFailureException( "Could not delete " + flattenedPomFile.getAbsolutePath() );
              }
          }
      }
docs: {@inheritDoc}