Computers have what's known as disk or SSD storage — that is the storage where your data and pictures and files and applications all reside, and particularly when you're not using them — and also have what is called random access memory — that's where your data or pictures or applications (briefly!) reside, and only when you are actively using them.
Disk or SSD storage is big and relatively slow, and random access memory storage is much smaller but vastly faster. OS X will move the data from disk or SSD into random access memory just for as long as that's necessary to work on what you've asked OS X to do, and any changes and any updates will be written from random access memory back out to disk or SSD storage. When the application is quit, it's removed from random access memory.
The error you're reporting is likely insufficient random access memory. Deleting files off the disk or SSD won't help with that.
One common source of this is either too little random access memory for all of what you've asked OS X to do — > About This Mac will tell you how much "memory" you have — this is random access memory — and how much storage — this is disk or SSD storage — you have available. It's also possible that some application is not releasing random access memory for some reason such as a corruption or a programming bug.
Activity Manager is an application in the Utilities folder within your Applications folder. Using Finder, open Applications folder, the open Utilities, then launch Activity Manager. Depending on exactly which version of OS X you're using, Activity Monitor will show you a graphic display of how much CPU, memory, energy, disk and network activity is occurring.
There's a long thread discussing this topic that might be worth a review — though it's quite possible your situation will have a very different trigger.
If you want to discuss this here, can you confirm which version of OS X you are using — see the > About This Mac — This is posted in the 10.9 Mavericks forum — and then launch Activity Monitor, and try to identify which application is using random access memory.