How to clear GraphQL cache on a hosted Craft CMS ?
![Oscar de la Hera Gomez](https://www.delasign.com/CDN/headshots/profile.webp)
![How to clear the GraphQL cache on a hosted Craft CMS](https://www.delasign.com/CDN/images/How-to-clear-the-GraphQL-cache-on-a-hosted-Craft-CMS%403x-100.webp)
If you ever encounter a Craft CMS GraphQL error after updating your schema, SSH into your server and run the following two commands.
Step One: SSH into the server
![A screenshot of Terminal showing what the terminal looks like after you have successfully accessed a hosted craft cms using SSH on Fortrabbit.](https://www.delasign.com/CDN/images/Youre-In.webp)
Follow the tutorial below to learn how to SSH into the server.
Step Two: Run the clear all caches command.
![Run php craft clear-caches/all in terminal to clear all caches](https://www.delasign.com/CDN/images/SSH-Clear-Caches-Command.webp)
In terminal run the following command:
php craft clear-caches/all
Step Three: Run the flush schema command
![Run php craft cache/flush-schema in terminal to flush the cache](https://www.delasign.com/CDN/images/SSH-Flush-Schema-Command.webp)
In terminal run the following command:
php craft cache/flush-schema
Any Questions?
We are actively looking for feedback on how to improve this resource. Please send us a note to inquiries@delasign.com with any thoughts or feedback you may have.