Delete all assets from a user

I have a few (well better ... a lot) broken images. No thumbnail, no data in upload folder and not in the library folder. I assume this is at least partially caused by Issue#2877. Another issue was my storage template I guess what cause a few duplicate paths that got resolved by Immich with a "+X" at the end. After changing the storage Label of the affected user I got a lot of errors in the immich microservices stating something like this: 2023-09-22T13:23:51.360263149Z [Nest] 8 - 09/22/2023, 1:23:51 PM ERROR [StorageTemplateService] Problem applying storage template 2023-09-22T13:23:51.360332452Z [Nest] 8 - 09/22/2023, 1:23:51 PM ERROR [StorageTemplateService] Error: ENOENT: no such file or directory, rename 'upload/library/739f0c6f-5577-472a-a531-686e8491ee53/2022/07_July/22-07-19_202440.jpg' -> 'upload/library/testuser/2022/07_July/22-07-19_202440+1.jpg' 2023-09-22T13:23:51.360522444Z [Nest] 8 - 09/22/2023, 1:23:51 PM ERROR [StorageTemplateService] Object: 2023-09-22T13:23:51.360573456Z { 2023-09-22T13:23:51.360586217Z "id": "25ad539f-f119-4d76-9f3f-576436c4b0ea", 2023-09-22T13:23:51.360598235Z "source": "upload/library/739f0c6f-5577-472a-a531-686e8491ee53/2022/07_July/22-07-19_202440.jpg", 2023-09-22T13:23:51.360611069Z "destination": "upload/library/testuser/2022/07_July/22-07-19202440+1.jpg" 2023-09-22T13:23:51.360629195Z } Neither the source nor the destination path exist. Now that the storage label is set up and I changed the storage template to something that is more likely to generate unique paths ({{y}}/{{MM}}{{MMMM}}/{{yy}}-{{MM}}-{{dd}}-{{HH}}{{mm}}{{ss}}_{{filename}}) I would like to just wipe all the data of the that user and let it reupload via the android app. Is that somehow possible to just drop the respective data of the user in the database and delete the assets on the disk manually or will this mess things up?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?