> For the complete documentation index, see [llms.txt](https://codedthemes.gitbook.io/datta-angular/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://codedthemes.gitbook.io/datta-angular/how-to/remove-authentication.md).

# Remove Authentication

This page describes how to remove auth from a theme

## **Disable Authentication Temporary**

Disabling authentication temporarily is generally not recommended due to security risks. However, if you have a specific scenario where you need to disable authentication for a short period, here are some steps you can follow:

1. In your `app-routing.module.ts,` the `canActivate` or `canLoad` guard is typically used to protect routes. If you want to disable the guard temporarily, you can comment it out.

{% tabs %}
{% tab title="src/app-routing.module.ts" %}

```typescript
....

const routes: Routes = [
  {
    path: '',
    component: AdminComponent,
    // canActivate: [AuthGuard],  // Commenting this out temporarily to disable authentication
    children: [
      {
        path: '',
        redirectTo: '/auth/signinv2',
        pathMatch: 'full'
      },
      ....
    ]
    ...
  }
  ...
]
```

{% endtab %}
{% endtabs %}
