# Delete a login method from an account

Endpoint: DELETE /v1/accounts/{id}/loginMethods
Version: v1
Security: x-api-key

## Security:

  - `x-api-key` (unknown)
    apiKey in header x-api-key

## Path parameters:

  - `id` (string, required)
    Unique identifier for the account

## Request body:

  - `application/json` (unknown)
    Delete one of the login methods from the account.

## Request fields (application/json):

  - `loginMethod` (string, required)
    The login method to remove from the account.
    Enum: "USERNAME_PASSWORD", "OKTA_SWA", "OIDC", "SAML", "FEDCM"

## Response 200:

  - `200` (unknown)
    OK

## Response 200 fields (application/json):

  - `id` (string)
    Unique identifier for the account
    Example: d6a32ba5-0532-4a66-8137-48cdf409c972

  - `employeeId` (string)
    Identifier of primary employee that this account belongs to
    Example: 72d0347a-2663-4ef5-b1c5-df39163f1603

  - `appType` (string)
    The app associated with this account
    Example: ATLASSIAN

  - `appId` (string)
    The ID of the app associated with this account
    Example: 2a2197de-ad2c-47e4-8dcb-fb0f04cf83e0

  - `email` (string)
    The email address used to log into the account
    Example: john.hill@example.com

  - `mfaRegistered` (boolean)
    Whether MFA is registered or not. If unknown, `null` is provided.
    Example: true

  - `mfaMethods` (array)
    The MFA methods registered for this account

  - `passwordId` (string)
    Identifier of the password used on this account. The actual password is not sent up by the browser extension and so this is an identifier for it instead. This value is `null` if password authentication is not used.
    Example: 4c13674f-e88a-4411-bfa2-53a70468a898

  - `loginMethods` (object)

  - `loginMethods.passwordLogin` (boolean)
    Whether or not this account has been logged into with a password
    Example: true

  - `loginMethods.lastPasswordLoginTimestamp` (integer)
    When the account was last logged into using a password, formatted as a UNIX timestamp (in seconds)
    Example: 1698064423

  - `loginMethods.oidcLogin` (string)
    The identity provider that was used to do an OIDC login on this account. This is `null` if no OIDC login has been performed.
    Example: GOOGLE_WORKSPACE

  - `loginMethods.lastOidcLoginTimestamp` (integer)
    When the account was last logged into using OIDC, formatted as a UNIX timestamp (in seconds)
    Example: 1698064423

  - `loginMethods.samlLogin` (string)
    The identity provider that was used to do a SAML login on this account. This is `null` if no SAML login has been performed.
    Example: OKTA

  - `loginMethods.lastSamlLoginTimestamp` (integer)
    When the account was last logged into using SAML, formatted as a UNIX timestamp (in seconds)
    Example: 1698064423

  - `loginMethods.oktaSwaLogin` (boolean)
    Whether or not this account has been logged into with Okta SWA
    Example: true

  - `loginMethods.lastOktaSwaLoginTimestamp` (integer)
    When the account was last logged into using Okta SWA, formatted as a UNIX timestamp (in seconds)
    Example: 1698064423

  - `loginMethods.vendorSsoLogin` (string)
    Whether or not this account has an associated vendor SSO provider.
    Example: GOOGLE_WORKSPACE

  - `loginMethods.fedCmLogin` (string)
    The identity provider that was used to do a FedCM login on this account. This is `null` if no FedCM login has been performed.
    Example: GOOGLE_WORKSPACE

  - `loginMethods.lastFedCmLoginTimestamp` (integer)
    When the account was last logged into using FedCM, formatted as a UNIX timestamp (in seconds)
    Example: 1698064423

  - `creationTimestamp` (integer)
    When this account was created, formatted as a UNIX timestamp (in seconds)
    Example: 1698064423

  - `lastUsedTimestamp` (integer)
    When the account was last used by an employee, formatted as a UNIX timestamp (in seconds)
    Example: 1698669168

## Response 400:

  - `400` (unknown)
    Bad Request

