Delete a Repository or View

Security Requirements and Controls

You are able to both delete and restore Repositories and Views, given that the user has the right permissions and that LogScale is configured properly.

Prerequisites

The following prerequisites are required.

Needed Permissions and Privileges

Users or tokens who have one of the following privileges or permissions can delete repositories and views:

  • Root users

  • Organization owners (on LogScale Cloud)

  • DeleteAllViews or DeleteAllRepositories organization level permission

  • DeleteRepositoryOrView view permission on the given repository/view

Configuration

If Bucket Storage is configured, data in repositories will be delated according to the retention rules. However, some data will be restorable for some time:

  • LogScale Cloud

    Data may be restored over the retention time for up to 7 days

  • LogScale On-Prem

    For on premise installations, we have 3 different environment variables that control the restorability. We recommend the default values.

    The following configuration variables and rules apply for this process:

Deleting a Repository

  1. Navigate to the repository's Danger zone.

    Screenshot showing the repository Danger zone settings page with a Repository name field, a Rename repository button, and a Delete repository section with a Delete repository button.

    FigureĀ 32.Ā Repo Danger Zone


  2. A dialog will appear that will let you know that the repository must have had no ingest for at least 24 hours. If that's not the case, you cannot proceed with deleting the repository. If the repository fulfills this condition, you can click Next

    Screenshot showing the Delete repository dialog at step 1 of 2, stating the repository must have no ingest for 24 hours, with a green checkmark confirming the repository has no data.

    FigureĀ 33.Ā Delete Repository Dialog


  3. You will be prompted to provide:

    • Repository name is the name of the repository. Required.

    • Audit log message is the reason for deleting the repository. This message will appear in the deletion audit log event. Optional.

    Screenshot showing the Delete repository dialog at step 2 of 2 with a Repository name field, an Audit log message text area, and Back, Cancel, and Delete repository buttons.

    FigureĀ 34.Ā Audit log


  4. Click Delete repository

  5. If restoring repositories is possible, you will be redirected to the Deleted repositories and views section under Organization settings. If restoring is not possible, you will be redirected to the home page.

    Screenshot showing the Deleted repositories and views page under Organization settings, with a table listing repository names and their Restorable until dates.

    FigureĀ 35.Ā Deleted Views and Repositories Page


Deleting a View

  1. Navigate to the view's Danger zone.

  2. You will be prompted to provide:

    • View name is the name of the view. Required.

    • Audit log message is the reason for deleting the repository. This message will appear in the deletion audit log event. Optional.

  3. Click Delete repository

  4. If restoring repositories is possible, you will be redirected to the Deleted repositories and views section under Organization settings. If restoring is not possible, you will be redirected to the home page.

Restoring a Repository or View

To restore a repository or view, Bucket storage has to be configured, and the user needs to have one of the following permissions or roles:

  • Root users

  • Organization owners (on cloud editions)

  1. Navigate to Organization Settings → Deleted repositories and views. If you don't see this page, restoring is not possible either due to Bucket storage not being configured, or due to lacking permissions.

  2. Find the repository/view that you want to restore in the table of deleted repositories and views.

  3. Click on the three dots on the far right column.

  4. Click Restore in the dropdown menu

  5. Click Restore repository/view

Screenshot showing the Deleted repositories and views page with an expanded action menu for a repository, showing See details in audit log and Restore options.

FigureĀ 36.Ā Restoring Repositories and Views