def METHOD_NAME(self):
    analysis_id = int(self.get_argument('analysis_id'))
    user = self.current_user
    check_analysis_access(user, Analysis(analysis_id))
    qiita_plugin = Software.from_name_and_version('Qiita', 'alpha')
    cmd = qiita_plugin.get_command('delete_analysis')
    params = Parameters.load(cmd, values_dict={'analysis_id': analysis_id})
    job = ProcessingJob.create(user, params, True)
    # Store the job id attaching it to the sample template id
    r_client.set('analysis_delete_%d' % analysis_id,
                 dumps({'job_id': job.id}))
    job.submit()
    self.redirect("%s/analysis/list/" % (qiita_config.portal_dir))