removing the data directory in the frontend