title: How to clean application history in hadoop yarn?
body: <p>After applications finished on yarn, a great amount application history will be shown in yarn.</p>
  
  <p>Both in web-ui <code>http://localhost:8088/cluster</code> and command line <code>yarn application -list -appStates FINISHED</code></p>
  
  <p>How can I clean these history? Or where does yarn store these history information?</p>
  
  <p>Restart RM,NM does not clean these history.</p>
  
  <p>Delete the logs in local file system ${YARN_LOG_DIR}/userlogs does not clean these history.</p>
  
  <p>Delete the logs' directory/files in hdfs:///tmp/logs/username/logs does not clean these history.</p>
  
  <p>Hadoop version: 2.7.7</p>