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

# Delete serviceaccounts

> delete a ServiceAccount



## OpenAPI

````yaml delete /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccounts/{name}
openapi: 3.0.0
info:
  title: Api
  version: v1alpha1
servers: []
security: []
paths:
  /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccounts/{name}:
    parameters:
      - name: name
        in: path
        description: name of the ServiceAccount
        required: true
        schema:
          type: string
          uniqueItems: true
      - name: namespace
        in: path
        description: object name and auth scope, such as for teams and projects
        required: true
        schema:
          type: string
          uniqueItems: true
      - name: pretty
        in: query
        description: If 'true', then the output is pretty printed.
        schema:
          type: string
          uniqueItems: true
    delete:
      tags:
        - cloudStreamnativeIo_v1alpha1
      summary: Delete serviceaccounts
      description: delete a ServiceAccount
      operationId: deleteCloudStreamnativeIoV1alpha1NamespacedServiceAccount
      parameters:
        - name: dryRun
          in: query
          description: >-
            When present, indicates that modifications should not be persisted.
            An invalid or unrecognized dryRun directive will result in an error
            response and no further processing of the request. Valid values are:
            - All: all dry run stages will be processed
          schema:
            type: string
            uniqueItems: true
        - name: gracePeriodSeconds
          in: query
          description: >-
            The duration in seconds before the object should be deleted. Value
            must be non-negative integer. The value zero indicates delete
            immediately. If this value is nil, the default grace period for the
            specified type will be used. Defaults to a per object value if not
            specified. zero means delete immediately.
          schema:
            type: integer
            uniqueItems: true
        - name: orphanDependents
          in: query
          description: >-
            Deprecated: please use the PropagationPolicy, this field will be
            deprecated in 1.7. Should the dependent objects be orphaned. If
            true/false, the "orphan" finalizer will be added to/removed from the
            object's finalizers list. Either this field or PropagationPolicy may
            be set, but not both.
          schema:
            type: boolean
            uniqueItems: true
        - name: propagationPolicy
          in: query
          description: >-
            Whether and how garbage collection will be performed. Either this
            field or OrphanDependents may be set, but not both. The default
            policy is decided by the existing finalizer set in the
            metadata.finalizers and the resource-specific default policy.
            Acceptable values are: 'Orphan' - orphan the dependents;
            'Background' - allow the garbage collector to delete the dependents
            in the background; 'Foreground' - a cascading policy that deletes
            all dependents in the foreground.
          schema:
            type: string
            uniqueItems: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.Status
            application/vnd.kubernetes.protobuf:
              schema:
                $ref: >-
                  #/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.Status
            application/yaml:
              schema:
                $ref: >-
                  #/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.Status
        '202':
          description: Accepted
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.Status
            application/vnd.kubernetes.protobuf:
              schema:
                $ref: >-
                  #/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.Status
            application/yaml:
              schema:
                $ref: >-
                  #/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.Status
components:
  schemas:
    io.k8s.apimachinery.pkg.apis.meta.v1.Status:
      description: Status is a return value for calls that don't return other objects.
      type: object
      properties:
        apiVersion:
          description: >-
            APIVersion defines the versioned schema of this representation of an
            object. Servers should convert recognized schemas to the latest
            internal value, and may reject unrecognized values. More info:
            https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
          type: string
        code:
          description: Suggested HTTP return code for this status, 0 if not set.
          type: integer
          format: int32
        details:
          description: >-
            Extended data associated with the reason.  Each reason may define
            its own extended details. This field is optional and the data
            returned is not guaranteed to conform to any schema except that
            defined by the reason type.
          allOf:
            - $ref: >-
                #/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails
        kind:
          description: >-
            Kind is a string value representing the REST resource this object
            represents. Servers may infer this from the endpoint the client
            submits requests to. Cannot be updated. In CamelCase. More info:
            https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
          type: string
        message:
          description: A human-readable description of the status of this operation.
          type: string
        metadata:
          description: >-
            Standard list metadata. More info:
            https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
          default: {}
          allOf:
            - $ref: >-
                #/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta
        reason:
          description: >-
            A machine-readable description of why this operation is in the
            "Failure" status. If this value is empty there is no information
            available. A Reason clarifies an HTTP status code but does not
            override it.
          type: string
        status:
          description: >-
            Status of the operation. One of: "Success" or "Failure". More info:
            https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
          type: string
      x-kubernetes-group-version-kind:
        - group: ''
          kind: Status
          version: v1
    io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails:
      description: >-
        StatusDetails is a set of additional properties that MAY be set by the
        server to provide additional information about a response. The Reason
        field of a Status object defines what attributes will be set. Clients
        must ignore fields that do not match the defined type of each attribute,
        and should assume that any attribute may be empty, invalid, or under
        defined.
      type: object
      properties:
        causes:
          description: >-
            The Causes array includes more details associated with the
            StatusReason failure. Not all StatusReasons may provide detailed
            causes.
          type: array
          items:
            default: {}
            allOf:
              - $ref: >-
                  #/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.StatusCause
        group:
          description: >-
            The group attribute of the resource associated with the status
            StatusReason.
          type: string
        kind:
          description: >-
            The kind attribute of the resource associated with the status
            StatusReason. On some operations may differ from the requested
            resource Kind. More info:
            https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
          type: string
        name:
          description: >-
            The name attribute of the resource associated with the status
            StatusReason (when there is a single name which can be described).
          type: string
        retryAfterSeconds:
          description: >-
            If specified, the time in seconds before the operation should be
            retried. Some errors may indicate the client must take an alternate
            action - for those errors this field may indicate how long to wait
            before taking the alternate action.
          type: integer
          format: int32
        uid:
          description: >-
            UID of the resource. (when there is a single resource which can be
            described). More info:
            http://kubernetes.io/docs/user-guide/identifiers#uids
          type: string
    io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta:
      description: >-
        ListMeta describes metadata that synthetic resources must have,
        including lists and various status objects. A resource may have only one
        of {ObjectMeta, ListMeta}.
      type: object
      properties:
        continue:
          description: >-
            continue may be set if the user set a limit on the number of items
            returned, and indicates that the server has more data available. The
            value is opaque and may be used to issue another request to the
            endpoint that served this list to retrieve the next set of available
            objects. Continuing a consistent list may not be possible if the
            server configuration has changed or more than a few minutes have
            passed. The resourceVersion field returned when using this continue
            value will be identical to the value in the first response, unless
            you have received this token from an error message.
          type: string
        remainingItemCount:
          description: >-
            remainingItemCount is the number of subsequent items in the list
            which are not included in this list response. If the list request
            contained label or field selectors, then the number of remaining
            items is unknown and the field will be left unset and omitted during
            serialization. If the list is complete (either because it is not
            chunking or because this is the last chunk), then there are no more
            remaining items and this field will be left unset and omitted during
            serialization. Servers older than v1.15 do not set this field. The
            intended use of the remainingItemCount is *estimating* the size of a
            collection. Clients should not rely on the remainingItemCount to be
            set or to be exact.
          type: integer
          format: int64
        resourceVersion:
          description: >-
            String that identifies the server's internal version of this object
            that can be used by clients to determine when objects have changed.
            Value must be treated as opaque by clients and passed unmodified
            back to the server. Populated by the system. Read-only. More info:
            https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
          type: string
        selfLink:
          description: >-
            Deprecated: selfLink is a legacy read-only field that is no longer
            populated by the system.
          type: string
    io.k8s.apimachinery.pkg.apis.meta.v1.StatusCause:
      description: >-
        StatusCause provides more information about an api.Status failure,
        including cases when multiple errors are encountered.
      type: object
      properties:
        field:
          description: >-
            The field of the resource that has caused this error, as named by
            its JSON serialization. May include dot and postfix notation for
            nested attributes. Arrays are zero-indexed.  Fields may appear more
            than once in an array of causes due to fields having multiple
            errors. Optional.


            Examples:
              "name" - the field "name" on the current resource
              "items[0].name" - the field "name" on the first array entry in "items"
          type: string
        message:
          description: >-
            A human-readable description of the cause of the error.  This field
            may be presented as-is to a reader.
          type: string
        reason:
          description: >-
            A machine-readable description of the cause of the error. If this
            value is empty there is no information available.
          type: string

````