calcom / cal.com

Scheduling infrastructure for absolutely everyone.
https://cal.com
Other
32.64k stars 8.09k forks source link

delete past events from /bookings UI #15829

Open EnZZoooOOO opened 4 months ago

EnZZoooOOO commented 4 months ago

Hi,

I want to delete past events . Add a feature to delete event by event (new, and old events) with a button.

If it is also possible to keep only X months of history. After X months , all the events are deleted.

Thanks,

surjeet88 commented 4 months ago

Hi,

Screenshot from 2024-07-20 06-43-38 ![Uploading Screenshot from 2024-07-20 06-43-38.png…]() From what I understand, you're asking to add a delete feature for events. I wanted to let you know that this feature is already available in the web app. If there's something else you're referring to, could you please provide more details?

EnZZoooOOO commented 4 months ago

Hi,

Thanks for your reply, but it's not the events, but the it's the past bookings I want to delete.

You can see the screenshot

Capture d’écran 2024-07-21 à 08 03 16
PeerRich commented 4 months ago

hey @EnZZoooOOO I would like to understand why you would like to delete past events?

PeerRich commented 4 months ago

and should it just hide it from your view or should the entire data be deleted? which could cause other side effects for the guests, i.e. when rescheduling, analytics, etc.

EnZZoooOOO commented 4 months ago

Hey @PeerRich , I would like the data to be deleted please. It is not a problem if there are side effects for the guests, i.e. when reprogramming, analysis etc. Thanks

PeerRich commented 4 months ago

whats the main reason to delete? just curious

PeerRich commented 4 months ago

i'm not against offering a way to delete past bookings. just curious to learn why

PeerRich commented 4 months ago

i.e. you cant delete past emails cause someone else received it etc.

EnZZoooOOO commented 4 months ago

@PeerRich Because I want to have a clean database. It's important for me.

PeerRich commented 4 months ago

Are you referring to app.cal.com http://app.cal.com/ or to your self-hosted instance? If you are self-hosting, you can simply clear the booking table

EnZZoooOOO commented 4 months ago

@PeerRich For now, I’m on app.cal.com but in a few weeks my instance will be installed on my server. Do you think it is possible to make a button and delete via the ID in database? If so, can you tell me how to do it please? Thank you very much!

PeerRich commented 4 months ago

on your own server, all you need to do is connect to your postgres DB and select the "Booking" table and delete these records