Skip to content

Conversation

Vriti62
Copy link
Contributor

@Vriti62 Vriti62 commented Sep 22, 2025

Closes: #1216
Closes: #1180

Describe the add-ons or changes you've made 📃

  • Implemented an authenticated DELETE endpoint to remove a collection by its ID.
  • Ensured cascade deletion: all projects inside the collection are deleted automatically using Mongoose middleware.
  • Added owner validation so that only the collection owner (via userID) can delete it.
  • Improved error handling with proper status codes and structured JSON responses.

Screenshots 📷

image

Type of change ☑️

What sort of change have you made:

  • [x ] New feature
  • [x ] Database update

Always open for any feedbacks!!

@vercel
Copy link

vercel bot commented Sep 22, 2025

@Vriti62 is attempting to deploy a commit to the avdheshvarshney's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link

Thank you for submitting your pull request! We'll review it as soon as possible. For further communication, join our discord server https://discord.gg/tSqtvHUJzE.

@Avdhesh-Varshney Avdhesh-Varshney merged commit b2e9f3f into Code-A2Z:main Sep 25, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Backend : Delete Entire Collection with Projects Add Saved Projects Feature with Sorting Options (Backend Implementation)

2 participants