Moved api stuff to separate class. currently working on async stuff
cached file deletion