Fixed the deletion for file updates.

Signed-off-by: Woody NaDobhar <woodynadobhar@gmail.com>