func (obj *sessionService) Delete(key string) error {
	_, err := db.Delete(models.SessionName).Where(goqu.Ex{
		"key": key,
	}).Executor().Exec()
	if err != nil {
		return errors.New(errors.UnexpectedStatus, errors.Report, g.Trans().TranslateEN("DeletionSessionFailed"))
	}

	return nil
}
// Delete deletes the value for the given key.
// It returns no error if the storage does not contain the key,
Delete deletes the value for the given key.
It returns no error if the storage does not contain the key.
// Delete deletes the value for the given key . // It returns no error if the storage does not contain the key
func (obj *sessionService) Delete(key string) error {
	_, err := db.Delete(models.SessionName).Where(goqu.Ex{
		"key": key,
	}).Executor().Exec()
	if err != nil {
		return errors.New(errors.UnexpectedStatus, errors.Report, g.Trans().TranslateEN("DeletionSessionFailed"))
	}
	return nil
}
func ( obj * sessionService ) Delete ( key string ) error { _ , err := db . Delete ( models . SessionName ) . Where ( goqu . Ex { " " : key , } ) . Executor ( ) . Exec ( ) if err != nil { return errors . New ( errors . UnexpectedStatus , errors . Report , g . Trans ( ) . TranslateEN ( " " ) ) } return nil }
Delete deletes the value for the given key.
Delete deletes the value for the given key .