diff --git a/src/Controller/WishlistController.php b/src/Controller/WishlistController.php
index b1a6d1a0181cce4c6cb03f67cf6ab9a19bb948e2..84db524a67d2d0373d124b07acbe8eb321ece233 100644
--- a/src/Controller/WishlistController.php
+++ b/src/Controller/WishlistController.php
@@ -110,7 +110,7 @@ public function show(Wishlist $wishlist, Request $request): Response
     {
         // Validate the CSRF token before deleting the wishlist
         if ($this->isCsrfTokenValid('delete'.$wishlist->getId(), $request->getPayload()->getString('_token'))) {
-            $entityManager->remove($wishlist); // Remove the wishlist from the database
+            $entityManager->delete($wishlist); // Remove the wishlist from the database
             $entityManager->flush(); // Save changes to the database
         }
 
diff --git a/src/Repository/WishlistRepository.php b/src/Repository/WishlistRepository.php
index 3b71436d150bf4db8b2afb6158f9ea431eb8519a..d460ba02705d4afc97fc00aaf79d58f1b0a97e53 100644
--- a/src/Repository/WishlistRepository.php
+++ b/src/Repository/WishlistRepository.php
@@ -30,7 +30,7 @@ class WishlistRepository extends ServiceEntityRepository
     public function removeWishlist(int $wishlistId) {
         $wishlist = $this->find($wishlistId);
         if ($wishlist) {
-            $this->getEntityManager()->remove($wishlist);
+            $this->getEntityManager()->delete($wishlist);
             $this->getEntityManager()->flush();
         }
     }