Added delete functionality, but it deletes the entire file....