function clearComments() {
  fetch('/deletedata', {
    method: 'POST',
    headers: {'Content-Type': 'application/json;charset=utf-8'},
    body: ''
  })
      .then(() => {
        clearBody();
      })
      .then(() => {
        loadComments('/data?refresh=true');
      });
}
/**
 * Clear all generated comments from database and refetch.
 */
Clear all generated comments from database and refetch.
Clear all generated comments from database and refetch .
function clearComments() {
  fetch('/deletedata', {
    method: 'POST',
    headers: {'Content-Type': 'application/json;charset=utf-8'},
    body: ''
  })
      .then(() => {
        clearBody();
      })
      .then(() => {
        loadComments('/data?refresh=true');
      });
}
function clearComments ( ) { fetch ( '/deletedata' , { method : 'POST' , headers : { 'Content-Type' : 'application/json;charset=utf-8' } , body : '' } ) . then ( ( ) => { clearBody ( ) ; } ) . then ( ( ) => { loadComments ( '/data?refresh=true' ) ; } ) ; }
Clear all generated comments from database and refetch.
Clear all generated comments from database and refetch .