func (db *Bolt) DeleteLink(id string) error {
	err := db.store.Update(func(tx *bolt.Tx) error {
		bucket := tx.Bucket([]byte(storage.LinksBucket))

		err := bucket.Delete([]byte(id))
		if err != nil {
			return err
		}

		return nil
	})
	if err != nil {
		return err
	}

	return nil
}
// DeleteLink removes a link from the database
DeleteLink removes a link from the database
// DeleteLink removes a link from the database
func (db *Bolt) DeleteLink(id string) error {
	err := db.store.Update(func(tx *bolt.Tx) error {
		bucket := tx.Bucket([]byte(storage.LinksBucket))
		err := bucket.Delete([]byte(id))
		if err != nil {
			return err
		}
		return nil
	})
	if err != nil {
		return err
	}
	return nil
}
func ( db * Bolt ) DeleteLink ( id string ) error { err := db . store . Update ( func ( tx * bolt . Tx ) error { bucket := tx . Bucket ( [ ] byte ( storage . LinksBucket ) ) err := bucket . Delete ( [ ] byte ( id ) ) if err != nil { return err } return nil } ) if err != nil { return err } return nil }
DeleteLink removes a link from the database
DeleteLink removes a link from the database