Function for deleting by date and by namespace added