After changing delete query for deleting the provider