Learn Bubble with 500+ tutorials, courses & AI Assistant ✨

Limited time launch offer get $80 off today

0 days 0 hours 0 minutes 0 seconds
SAVE $80 NOW
Planet No Code logo
Bubble.io CoachingFounder MentoringSponsorships
LoginLearn Bubble.io

Bubble ChatGPT Clone: How to delete chat sessions

In this Bubble.io tutorial we expand on our previous Bubble.io ChatGPT Clone videos to show you how to delete a conversation and all messages included in that conversation.

Join now $19/monthLearn more
Get 500+ tutorials, a No-Code AI Assistant, 4 premium courses, and everything you need to build faster!
Bubble ChatGPT Clone: How to delete chat sessions
Explore these topics...
Workflow
Database
Design
Icons
Plugins
OpenAI

With just this tutorial learn...

Delete chat sessions like a pro: Learn how to efficiently manage your ChatGPT clone's conversations and messages in Bubble.

Supercharge your Bubble app: Discover how to create a ChatGPT app with no code and implement advanced features like conversation deletion.

Master Bubble workflows: Unlock the power of backend workflows to handle complex operations like deleting conversations and associated messages.

With membership you'll...

Learn how to build a ChatGPT Clone, Custom CRM for your business & SaaS Marketing website with Webflow & AI.

Unlock 500+ Bubble tutorial videos with AI powered Q&A.

Debug your Bubble app instantly with our custom trained No Code AI Assistant.

Join now $19/month
Risk-free! 14-day money-back guarantee. Cancel anytime.

Introduction to ChatGPT Clone in Bubble

This Bubble tutorial video is a follow-on from a mini series we've been going through of how to build a ChatGPT clone in Bubble.io. So that is being able to make your own version of ChatGPT without having to basically write single line of quote with the exception of a small amount of JSON. So check out our previous videos on our channel for how to get this far because this video is simply going to focus on what happens if I delete a conversation and I also want to delete all the messages in that conversation.

Setting Up the Delete Functionality

I've got a simple sidebar here I'm on this conversation here. We've already done a video showing how to add in an introduction message or an opening message that's hello my name is Frank I'm a chat bot and then I as the user submitted what is the capital of the USA and ChatGPT OpenAI as API replied back with the capital of the USA is Washington DC. So what I want to delete this so I'm going to go into design and I'm going to add in an icon into my repeating group here.

Designing the Delete Icon

My repeating group here is a list through of conversations so I'm going to change this to trash remove some of the default styling on the icon that's why it's not why it's not showing up fully maybe I just need to make it a bit bigger. There we go I'm gonna make this last adjust the height here there we go and then also change the repeating groups container layout to row now if I preview that you'll see I have a trash or a bin icon in the far right of my repeating group for my conversations so now I need to add a workflow to it and remember this workflow is going to not only delete the conversation but also delete all of the messages.

Creating the Delete Workflow

So in my data structure my messages have got a field of conversation and conversation doesn't have any additional fields to it so I'm simply using conversation to group together my messages that means that I need to delete my messages before I delete the conversation because it's conversation that is holding my messages together so I can do delete a list of things messages and I can say do a search for messages where conversation equals current cell's conversation and then I can do delete a thing because I'm now only deleting one thing and that is current cell's conversation so it's going to list through any messages where the conversation equals current cell's conversation it's going to delete those and then it's going to delete the conversation.

Testing the Delete Functionality

So if I go into my database app data we can see that this is the conversation here we see I've got two unique conversation IDs here one ending in 2500 and then this is the other one up here so these are the ones here that I'm expecting to be deleted so let's give that a go and hit delete and it's deleted and if I go into messages we can see that all of the messages from that conversation have gone and I'm now only left with one conversation.

Handling Empty Chat Views

I'm going to add one final step here which is when I deleted the conversation I now have an empty chat view and that means if I send the message here it's not actually connected in with a conversation so I'm going to say display data page body sales conversation the reason I'm doing this is in the previous videos where you will have seen how I built all of this ChatGPT interface I have page body and that holds the conversation that new messages are entered into so not current cell's conversation but I'm going to say repeating group list of conversations first item and so what that will do is that by deleting one of the conversations in my repeating group of conversations it's going to just show you fill in the first conversation in that repeating group that is left.

Additional Considerations

Now I'm not going to cover that in this video because it's already meant to be a bite-size one but you also need to take into consideration this is step three isn't going to do anything if I've deleted the final conversation I then need to actually create a conversation if there are no conversations left and you could do this by adding in an only when statement on step three and then adding a step four statement of creating a new conversation if you needed to and adding a condition to that to only happen if there are no more conversations left in the repeating group.

Conclusion

So there you have it that's a quick addition to our Bubble ChatGPT clone tutorial and thank you very much to the commenter on one of our previous videos who asked a question related to how do I delete all the messages when I delete a conversation.

Explore More Content

Hey guys if you're finding these YouTube tutorials helpful we invite you to explore even more content on our website at Planet No Code. We have a large selection and variety of super in-depth and detailed video lessons are created and curated just for our pain members it's all about learning together and accelerating your no-code journey. Check us out at www.planetnocode.com and let's continue building without limits.

Table of contents

Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Your No-Code Journey Starts Here

The best way to learn Bubble.io?

Build No Code Confidently

No more delays. With 30+ hours of expert content, you’ll have the insights needed to build effectively.

Find every solution in one place

No more searching across platforms for tutorials. Our bundle has everything you need, with 500+ videos covering every feature and technique.

Dive deep into every detail

Get beyond the basics with comprehensive, in-depth courses & no code tutorials that empower you to create a feature-rich, professional app.

Monthly
Yearly
Member
Accelerate your Bubble app to launch
$99 / month
$19/month/mo
Includes:
500+ tutorials
4 premium courses
Find the right tutorial with our custom trained AI
New tutorials added each week
Cancel anytime
14 day money back
Join now
Member
Accelerate your Bubble app to launch
$990 / year
$149/year/mo
Includes:
500+ tutorials
4 premium courses
Find the right tutorial with our custom trained AI
New tutorials added each week
Cancel anytime
14 day money back
Join now

Frequently Asked Questions

Find answers to common questions about our courses, tutorials & content.

Do I need any coding experience?

No. Our Beginner Essentials course and AI No-Code Coach are designed for total newcomers. You’ll learn Bubble.io step by step - no coding required.

How does the AI No-Code Coach work?

Simply type your question in plain English, and our AI taps into the entire video library to recommend the exact lessons you need. It’s like having a personal instructor on demand.

How long can I access the content?

As long as you’re subscribed! With our monthly subscription, you get unlimited access to all 500+ videos, our growing course library, and the AI No-Code Coach.

What courses are included

Your subscription includes:

  • Bubble Beginner Essentials – Get up and running fast.
  • Build a ChatGPT Clone – Integrate AI into your no-code apps.
  • Build Your SaaS Website with AI – Learn to create a scalable startup site.
  • Develop a Custom CRM App in Bubble - Learn database relationships with a CRM.

Plus, new tutorials every week!

What if I get stuck on a lesson?

The AI No-Code Coach is your first stop for instant answers. If you need deeper help, you can book 1:1 Bubble coaching for expert guidance.

Do you offer a money-back guarantee?

Yes! If you don’t see real progress within 14 days, let us know, and we’ll issue a full refund—no questions asked.

Can I cancel anytime?

Absolutely. Your subscription is month-to-month, and you can cancel anytime—no lock-ins, no hidden fees.

What if I want more than just tutorials & courses?

Absolutely. Your subscription is month-to-month, and you can cancel anytime—no lock-ins, no hidden fees.

If you’re serious about building a successful SaaS startup, check out Mastery—our intensive mentorship program. Mastery goes beyond Bubble.io development and includes:

  1. 1:1 mentorship to fast-track your progress
  2. Marketing strategies tailored for no-code founders‍
  3. Product management insights to scale your startup‍
  4. Personalized support from experienced founders

‍

Still have questions?

Reach out to our dedicated team.

Contact
Services
Search Bubble TutorialsBubble.io CoursesBook Bubble.io CoachingApply for Mastery
Latest Bubble tutorials
Rerank Text By MEANING With Cohere In Bubble.io Step by Step!
Unlock RAG Providers for NO CODE AI App Development TODAY!
Better Tables with Built-in Search and Sort By in Bubble.io
Partnerships
Flusk.eu
VectorShift
Comnoco
Plumb
Toddle
Whereby
Get started with no code
AI Powered No Code AppsNo Code Web ScrapingBubble.io Plugin tutorialsBubble API Connector tutorialsStudent & Teacher DiscountBest tools for no coders
Follow us
Youtube
X
LinkedIn
Planet No Code logo
In partnership with
Queen Mary University of London Logo
© 2024 Planet No Code. All rights reserved.
Privacy PolicyTerms of ServiceCookies SettingsContact Us