Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add doc for winter:util purge uploads/orphans #5

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
add doc for october:util purge uploads/orphans
  • Loading branch information
mjauvin committed Jan 22, 2021
commit 1aebd1f2f5552325e44520d03e1cf57352916c0a
17 changes: 17 additions & 0 deletions console-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -304,3 +304,20 @@ This will execute the command `git pull` on all theme and plugin directories.
Deletes all generated thumbnails in the uploads directory.

php artisan october:util purge thumbs

#### Purge uploads

Deletes files in the uploads directory that do not exist in the "system_files" table.

php artisan october:util purge uploads

#### Purge orphans

Deletes records in "system_files" table that do not belong to any other model.

php artisan october:util purge orphans

To also delete records that have no associated file in the local storage, pass the `--missing-files` option.

php artisan october:util purge orphans --missing-files