Skip to content

Commit

Permalink
Update clean_database.md
Browse files Browse the repository at this point in the history
  • Loading branch information
freeplant authored Aug 23, 2023
1 parent 7931259 commit d3360d5
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions manual/maintain/clean_database.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@

Since version 5.0, we offered command to clear expired session records in Seahub database.

For version 7.0 and earlier
```
cd <install-path>/seafile-server-latest
./seahub.sh python-env seahub/manage.py clearsessions
```

For version 7.1 and later
```
cd <install-path>/seafile-server-latest
./seahub.sh python-env python3 seahub/manage.py clearsessions
Expand Down Expand Up @@ -100,13 +93,6 @@ cd <install-path>/seafile-server-latest
Since version 6.2, we offer command to clear outdated library records in Seahub database,
e.g. records that are not deleted after a library is deleted. This is because users can restore a deleted library, so we can't delete these records at library deleting time.

For version 7.0 and earlier
```
cd <install-path>/seafile-server-latest
./seahub.sh python-env seahub/manage.py clear_invalid_repo_data
```

For version 7.1 and later
```
cd <install-path>/seafile-server-latest
./seahub.sh python-env python3 seahub/manage.py clear_invalid_repo_data
Expand Down

0 comments on commit d3360d5

Please sign in to comment.