detects removed file and removes from public
fix a small bug and file deletion is working :shipit: