How to delete newly ignored files on the Nextcloud server?

Nextcloud version (eg, 20.0.5): 24.0.4
Nextcloud client version: 3.6.0 (Linux)

After a synchronization, I realized some files should be ignored, so I added patterns to Nextcloud’s ignored files. How do I make my Nextcloud server delete the ignored files, so when another client synchronizes, such files won’t be downloaded?

Thanks in advance.