Commands in Mongosh not updating the database in Compass & Cluster

I have recently set up a cluster in Atlas. I have installed Compass and I have installed Mongosh. I am using Mongosh in VSCode. Whenever I update anything using Mongosh in VSCode it does not update this in Compass or Atlas. Furthermore, if i, for example, were to delete all data from a collection in VSCode, it would return no data in VSCode itself but if i were to view the database in either Atlas or Compass, it would show the collection as untouched. I am at a loss of why this is happening.