Made delete working