> ## Documentation Index
> Fetch the complete documentation index at: https://finance.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete User Settings

> Delete specific user settings by keys for a category.

_Requires bearer token authentication_



## OpenAPI

````yaml https://spec.speakeasy.com/aries/aries/aries-trading-platform-api-with-code-samples delete /v1/config/{category}/user-settings
openapi: 3.0.3
info:
  title: Aries Trading Platform API
  description: >-
    Complete API documentation for the Aries trading platform including user
    management, authentication, account management, order management, market
    data, and analytics
  contact:
    name: Aries Financial
    email: dev@aries.com
  version: 1.0.0
servers:
  - url: https://api.tradearies.dev
    description: Production server
security: []
tags:
  - name: Accounts
    description: Account management endpoints for positions, orders, and balances
  - name: Analytics
    description: >-
      Analytics endpoints for market data analysis including top gainers,
      losers, volume leaders, sector analysis, analyst ratings, market breadth,
      and net inflow
  - name: Authentication
    description: User authentication endpoints
  - name: Calendars
    description: Calendar endpoints for economic events and historical data
  - name: Market Data
    description: >-
      Market data endpoints for symbol search, real-time data access, and equity
      details
  - name: Orders
    description: >-
      Order management endpoints for placing, updating, canceling, and
      previewing orders
  - name: Users
    description: User management endpoints
  - name: Health
    description: Service health endpoints
paths:
  /v1/config/{category}/user-settings:
    delete:
      tags:
        - User Settings
      summary: Delete User Settings
      description: |-
        Delete specific user settings by keys for a category.

        _Requires bearer token authentication_
      operationId: deleteUserSettings
      parameters:
        - name: category
          in: path
          description: >-
            Category of the setting (e.g., 'display', 'trading',
            'notifications')
          required: true
          schema:
            type: string
          example: trading
      requestBody:
        description: List of setting keys to delete
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteKeysRequest'
            example:
              keys:
                - theme
                - auto_trading
        required: true
      responses:
        '200':
          description: User settings deleted successfully
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Bad request - Invalid request body or delete error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: User setting delete error
                codes:
                  - code: USER_SETTING_DELETE_ERROR
                    description: User setting delete error
        '401':
          description: Unauthorized
        '500':
          description: Internal server error
      security:
        - BearerAuth: []
      x-codeSamples:
        - lang: java
          label: Java (SDK)
          source: >-
            package hello.world;


            import java.lang.Exception;

            import java.util.List;

            import org.openapis.openapi.AriesJava;

            import org.openapis.openapi.models.components.DeleteKeysRequest;

            import org.openapis.openapi.models.errors.ErrorResponse;

            import
            org.openapis.openapi.models.operations.DeleteUserSettingsResponse;


            public class Application {

                public static void main(String[] args) throws ErrorResponse, Exception {

                    AriesJava sdk = AriesJava.builder()
                            .bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", ""))
                        .build();

                    DeleteUserSettingsResponse res = sdk.userSettings().delete()
                            .category("trading")
                            .body(DeleteKeysRequest.builder()
                                .keys(List.of(
                                    "theme",
                                    "auto_trading"))
                                .build())
                            .call();

                    if (res.object().isPresent()) {
                        // handle response
                    }
                }
            }
components:
  schemas:
    DeleteKeysRequest:
      type: object
      properties:
        keys:
          type: array
          items:
            type: string
          description: Array of setting keys to delete
      required:
        - keys
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Error message
        codes:
          type: array
          items:
            type: object
            properties:
              code:
                type: string
                description: Error code
              description:
                type: string
                description: Error description
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````