Added removal for remote files

Still needs to be coded for empty directory though