DeleteCollectionAsync() public method

Delete the specified collection. Deletion may be denied for collections with many events. Master API key is required.
public DeleteCollectionAsync ( string collection ) : System.Threading.Tasks.Task
collection string Name of collection to delete.
return System.Threading.Tasks.Task
Example #1
0
        public async Task Async_DeleteCollection_Success()
        {
            var client = new KeenClient(settingsEnv);
            if (UseMocks)
                client.EventCollection = new EventCollectionMock(settingsEnv,
                    DeleteCollection: new Action<string, IProjectSettings>((c, p) =>
                    {
                        if ((p == settingsEnv) && (c == "DeleteColTest"))
                            return;
                        else
                            throw new Exception("Unexpected value");
                    }));

            await client.DeleteCollectionAsync("DeleteColTest");
        }