async delete(filePath) {
    const docId = DOCUMENT_ID_PREFIX + normalizePath(filePath)
    const doc = await this.db.get(docId, { attachments: false })
      .catch(err => {
        if (err.name !== 'not_found') {
          throw unknowError(err)
        }
        return false
      })
    if (!doc) {
      return false
    }
    if (doc.isDirectory) {
      return false
    }

    return this.db.remove(doc._id, doc._rev)
      .catch(err => {
        throw unknowError(err)
      })
      .then(result => {
        return result.ok
      })
  }
/**
   * Search a file by his id and deleted it
   * @param fileid - Id of the file to be deleted
   * @return {boolean} True if the file exists and is been deleted. False if the file doesn't exists
   */
Search a file by his id and deleted it
@param fileid - Id of the file to be deleted
@return {boolean} True if the file exists and is been deleted. False if the file doesn't exists
Search a file by his id and deleted it @param fileid - Id of the file to be deleted @return { boolean } True if the file exists and is been deleted . False if the file doesn ' t exists
async delete(filePath) {
    const docId = DOCUMENT_ID_PREFIX + normalizePath(filePath)
    const doc = await this.db.get(docId, { attachments: false })
      .catch(err => {
        if (err.name !== 'not_found') {
          throw unknowError(err)
        }
        return false
      })
    if (!doc) {
      return false
    }
    if (doc.isDirectory) {
      return false
    }
    return this.db.remove(doc._id, doc._rev)
      .catch(err => {
        throw unknowError(err)
      })
      .then(result => {
        return result.ok
      })
  }
async delete ( filePath ) { const docId = DOCUMENT_ID_PREFIX + normalizePath ( filePath ) const doc = await this . db . get ( docId , { attachments : false } ) . catch ( err => { if ( err . name !== 'not_found' ) { throw unknowError ( err ) } return false } ) if ( ! doc ) { return false } if ( doc . isDirectory ) { return false } return this . db . remove ( doc . _id , doc . _rev ) . catch ( err => { throw unknowError ( err ) } ) . then ( result => { return result . ok } ) }
Search a file by his id and deleted it
 @param fileid - Id of the file to be deleted
 @return {boolean} True if the file exists and is been deleted.
Search a file by his id and deleted it @param fileid - Id of the file to be deleted @return { boolean } True if the file exists and is been deleted .