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

# Delete URL redirect

> <Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>

Removes a redirect from the app's published site.

The source path goes back to serving whatever the app has at it, or a 404 when it has nothing.

Base44 tries to drop the cached copy so that happens immediately, but as on [Create URL redirect](/api-reference/create-url-redirect) the eviction is best effort and unreported. While the rule was live the cache may hold the target's page under the source URL, so if the eviction does not land the deleted redirect looks like it is still working, returning the target's content with a 200, until the cache revalidates or expires.

The response body is empty, so read the status code.

<Note>This endpoint accepts a personal API key. Workspace API keys are not authorized for it and are rejected with a 403.</Note>



## OpenAPI

````yaml /developers/references/app-management/app-management-openapi.json delete /api/apps/{app_id}/url-redirects/{redirect_id}
openapi: 3.1.0
info:
  title: Base44 App Management API
  version: 1.0.0
servers:
  - url: https://app.base44.com
security:
  - ApiKeyAuth: []
paths:
  /api/apps/{app_id}/url-redirects/{redirect_id}:
    delete:
      summary: Delete URL redirect
      description: >-
        <Info>This API is in beta. Endpoints, fields, and behavior may still
        change, so avoid depending on it in production.</Info>


        Removes a redirect from the app's published site.


        The source path goes back to serving whatever the app has at it, or a
        404 when it has nothing.


        Base44 tries to drop the cached copy so that happens immediately, but as
        on [Create URL redirect](/api-reference/create-url-redirect) the
        eviction is best effort and unreported. While the rule was live the
        cache may hold the target's page under the source URL, so if the
        eviction does not land the deleted redirect looks like it is still
        working, returning the target's content with a 200, until the cache
        revalidates or expires.


        The response body is empty, so read the status code.


        <Note>This endpoint accepts a personal API key. Workspace API keys are
        not authorized for it and are rejected with a 403.</Note>
      operationId: delete_url_redirect_api_apps__app_id__url_redirects__redirect_id__delete
      parameters:
        - name: app_id
          in: path
          required: true
          schema:
            type: string
            description: ID of the app whose URL redirects to manage.
            title: App Id
          description: ID of the app whose URL redirects to manage.
          example: 6820f3a4e7b91d003c45a1f2
        - name: redirect_id
          in: path
          required: true
          schema:
            type: string
            description: >-
              ID of the redirect, as returned in `id` by [List URL
              redirects](/api-reference/list-url-redirects).
            title: Redirect Id
          description: >-
            ID of the redirect, as returned in `id` by [List URL
            redirects](/api-reference/list-url-redirects).
          example: 68c2d1e5f3b8a4216e9b5583
      responses:
        '204':
          description: The redirect was removed.
        '401':
          description: Missing or invalid credentials.
        '402':
          description: Your workspace plan doesn't include custom domains.
        '403':
          description: >-
            You don't have access to this app, or you used a workspace API key.
            These endpoints take a personal API key.
        '404':
          description: The app has no URL redirect with this ID.
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: api_key
      description: Personal API key.

````