View Source Mobilizon.Service.CleanOldActivity (Mobilizon v4.1.0-alpha.1)

Service to clean old activities

Summary

Functions

Clean old activities

Functions

@spec clean(Keyword.t()) :: {:ok, [Media.t()]} | {:error, String.t()}

Clean old activities

Remove activities that are older than a certain period

Options:

  • grace_period how old in hours can the media be before it's taken into account for deletion
  • dry_run just return the media that would have been deleted, don't actually delete it