diff --git a/src/main/java/org/olat/user/DisplayPortraitManager.java b/src/main/java/org/olat/user/DisplayPortraitManager.java
index 7f4f383b7244f308f7683d95302e98716c36b868..d56a2732ecfa610f4cb8b70138c12b0b794360d7 100644
--- a/src/main/java/org/olat/user/DisplayPortraitManager.java
+++ b/src/main/java/org/olat/user/DisplayPortraitManager.java
@@ -376,11 +376,13 @@ public class DisplayPortraitManager implements UserDataDeletable {
 		}
 		return folder;
 	}
-	
-	/**
-	 * Delete home-page config-file of a certain user.
-	 * @see org.olat.user.UserDataDeletable#deleteUserData(org.olat.core.id.Identity)
-	 */
+
+	@Override
+	public int deleteUserDataPriority() {
+		// must have higher priority than HomePageConfigManagerImpl
+		return 650;
+	}
+		
 	@Override
 	public void deleteUserData(Identity identity, String newDeletedUserName, File archivePath) {
 		String userHomePage = FolderConfig.getCanonicalRoot() + FolderConfig.getUserHomePage(identity.getName()); 
diff --git a/src/main/java/org/olat/user/HomePageConfigManagerImpl.java b/src/main/java/org/olat/user/HomePageConfigManagerImpl.java
index f187cc3af65b98f022991d524e2154c72013f442..384ee5244b6e09437d8a375a257a4b46af7d4d28 100644
--- a/src/main/java/org/olat/user/HomePageConfigManagerImpl.java
+++ b/src/main/java/org/olat/user/HomePageConfigManagerImpl.java
@@ -146,6 +146,13 @@ public class HomePageConfigManagerImpl extends BasicManager implements HomePageC
 		return userHomePage;
 	}
 
+	
+	@Override
+	public int deleteUserDataPriority() {
+		// must have lower priority than DisplayPortraitManager (otherwise portrait archive does not work)
+		return 600;
+	}
+
 	/**
 	 * Delete home-page config-file of a certain user.
 	 * @see org.olat.user.UserDataDeletable#deleteUserData(org.olat.core.id.Identity)