• Removes an entire namespace and all its key-value pairs.

    Permanently deletes all data within the specified namespace. This is a destructive operation that cannot be undone. Use with extreme caution for critical data or production systems.

    Parameters

    • namespace: string

      Namespace to completely remove from storage

    Returns Promise<void>

    Throws

    When deletion request fails or service is unavailable

    Example: Clear All User Preferences

    // Warning: This removes ALL user preferences permanently
    await deleteKeyValueNamespace('user-preferences');
    console.log('All user preferences cleared');

    // Better: Clear specific preferences individually
    await deleteKeyValue('user-preferences', 'theme-mode');
    await deleteKeyValue('user-preferences', 'language');