diff --git a/Interfaces/IXBaseFileProvider.cs b/Interfaces/IXBaseFileProvider.cs
index 7f80968..06bae52 100644
--- a/Interfaces/IXBaseFileProvider.cs
+++ b/Interfaces/IXBaseFileProvider.cs
@@ -69,21 +69,6 @@ namespace xFileService.Interfaces
XUserClaimsInfoDto userInfo = null
);
- ///
- /// Remove Specified Files ...
- ///
- ///
- ///
- ///
- ///
- ///
- Task> RemoveFiles(
- TKey forProvidedId,
- string ids = null,
- string connectionId = null,
- XUserClaimsInfoDto userInfo = null
- );
-
///
/// Retrieve Specified File Streaming Info ...
///
diff --git a/Providers/XBaseFileProvider.cs b/Providers/XBaseFileProvider.cs
index b2516ad..93387d7 100644
--- a/Providers/XBaseFileProvider.cs
+++ b/Providers/XBaseFileProvider.cs
@@ -242,90 +242,6 @@ namespace xFileService.Providers
return result;
}
- ///
- /// Remove Specified Files ...
- ///
- ///
- /// if null, Remove all Files
- ///
- ///
- ///
- public async Task> RemoveFiles(
- TKey providedForId,
- string ids = null,
- string connectionId = null,
- XUserClaimsInfoDto userInfo = null
- )
- {
- //
- // Validate ...
- if (providedForId.IsNull())
- {
- XException.InvalidArgs.Throw();
- }
-
- //
- // Parse Provided IDS ...
- var idsList = new List();
- IEnumerable entities = null;
- if (!ids.IsNullOrEmpty())
- {
- //
- idsList = ids
- .ParseListGuid()
- .ToList();
- }
- else
- {
- //
- var identifier = GetProvidedID(providedForId);
-
- //
- // Select All Referenced Files ...
- idsList = FileProvider.FileRepository
- .AsQueryable()
- .Where(f => f.References.Contains(identifier))
- .Select(f => f.Id)
- .ToList();
- }
-
- //
- // Retrieve Entities ...
- entities = FileProvider.FileRepository
- .AsQueryable()
- .Where(d => idsList.Contains(d.Id) &&
- d.References.Contains(Provider));
-
- //
- var result = new List();
- var isValid = !entities.IsNull() && entities.HasChild();
- if (isValid)
- {
- //
- foreach (var entity in entities)
- {
- //
- // Remove File ...
- var idsToRemove = new List { entity.Id.ToString() }.ToListString();
- var removeIds = await FileProvider.Remove(
- ids: idsToRemove,
- userInfo: userInfo,
- connectionId: connectionId
- );
- isValid = !removeIds.IsNull() &&
- removeIds.HasChild() &&
- removeIds.Contains(entity.Id);
- if (isValid)
- {
- result.Add(entity.Id);
- }
- }
- }
-
- //
- return result;
- }
-
///
/// Retrieve Specified File Streaming Info ...
///