# Custom Flash Makefile
 
 flash: $(D)/flashcp
-       rm -f $(BUILD_TMP)/rootfs/oldroot
+       rm -fr $(BUILD_TMP)/rootfs/oldroot
        if [ $(PLATFORM) = "apollo" ]; then \
                cd $(BUILD_TMP)/rootfs && \
                cp -f $(BUILD_TMP)/rootfs/etc/init.d/update.sh $(BUILD_TMP)/update.sh && \
        fi
 
 flash-full:
-       rm -f $(BUILD_TMP)/rootfs/oldroot
+       rm -fr $(BUILD_TMP)/rootfs/oldroot
        if [ $(PLATFORM) = "apollo" ]; then \
                cd $(BUILD_TMP)/rootfs && \
                cp -f $(BUILD_TMP)/rootfs/sbin/devtable $(BUILD_TMP)/devtable && \