Patch motion locked

Hi,
I wanted to create some space during data analysis, so I moved patch motion folder to our storage unit, but it didnt free the space probably locked the database, how can I unlock the database? or clear the cache.