func Remove(db *bolt.DB, bucketName []byte, name string) error {
	return db.Update(func(tx *bolt.Tx) error {
		b := tx.Bucket(bucketName)
		if err := b.Delete([]byte(name)); err != nil {
			return errors.Wrap(err, "remove record")
		}
		return nil
	})
}
Remove removes a record from the database.
package dbutil
import (
	"testing"
	"time"
	"github.com/GGP1/kure/config"
	"github.com/awnumar/memguard"
	"github.com/pkg/errors"
	bolt "go.etcd.io/bbolt"
)
var (
	CardBucket  = []byte("kure_card")
	EntryBucket = []byte("kure_entry")
	FileBucket  = []byte("kure_file")
	TOTPBucket  = []byte("kure_totp")
)
func ListNames(db *bolt.DB, bucketName []byte) ([]string, error) {
	tx, err := db.Begin(false)
	if err != nil {
		return nil, err
	}
	defer tx.Rollback()
	b := tx.Bucket(bucketName)
	if b == nil {
		return nil, nil
	}
	records := make([]string, 0, b.Stats().KeyN)
	_ = b.ForEach(func(k, _ []byte) error {
		records = append(records, string(k))
		return nil
	})
	return records, nil
}