Deletes chats that have been archived for longer than the given threshold. Active (non-archived) chats are never deleted. Related chat_messages, chat_diff_statuses, and chat_queued_messages are removed via ON DELETE CASCADE. Parent/root references on child chats are SET NULL.
(ctx context.Context, arg DeleteOldChatsParams)
| 187 | // chat_queued_messages are removed via ON DELETE CASCADE. |
| 188 | // Parent/root references on child chats are SET NULL. |
| 189 | DeleteOldChats(ctx context.Context, arg DeleteOldChatsParams) (int64, error) |
| 190 | DeleteOldConnectionLogs(ctx context.Context, arg DeleteOldConnectionLogsParams) (int64, error) |
| 191 | // Delete all notification messages which have not been updated for over a week. |
| 192 | DeleteOldNotificationMessages(ctx context.Context) error |
no outgoing calls