iOS App memory allocation / photo sync

The iOS app consumes more and more memory on the mobile decvice. It seems that synchronized photos and videos are kept in the nextcloud app as a local copy. How can I release the allocated memory on the mobile device?