function delete_character(db_promise, character_index) {
  return db_promise.then(db => {
    let tx = db.transaction('characters', 'readwrite');
    let character_store = tx.objectStore('characters');
    character_store.delete(character_index);
    return tx.complete;
  });
}
//delete a specific character by index
delete a specific character by index
delete a specific character by index
function delete_character(db_promise, character_index) {
  return db_promise.then(db => {
    let tx = db.transaction('characters', 'readwrite');
    let character_store = tx.objectStore('characters');
    character_store.delete(character_index);
    return tx.complete;
  });
}
function delete_character ( db_promise , character_index ) { return db_promise . then ( db => { let tx = db . transaction ( 'characters' , 'readwrite' ) ; let character_store = tx . objectStore ( 'characters' ) ; character_store . delete ( character_index ) ; return tx . complete ; } ) ; }
delete a specific character by index
delete a specific character by index