@commands.command(aliases=['adm'])
async def anchor_delete_manual(self, ctx):
    'Delete the messages between two anchors.'
    if (ctx.channel.id in self._anchors):
        async for message in ctx.channel.history(limit=None):
            if (message.id == self._anchors[ctx.channel.id]):
                (await message.delete())
                del self._anchors[ctx.channel.id]
                break
            else:
                (await message.delete())
    else:
        self._anchors[ctx.channel.id] = ctx.message.id
Delete the messages between two anchors.
@commands.command(aliases=['adm'])
async def anchor_delete_manual(self, ctx):
    
    if (ctx.channel.id in self._anchors):
        async for message in ctx.channel.history(limit=None):
            if (message.id == self._anchors[ctx.channel.id]):
                (await message.delete())
                del self._anchors[ctx.channel.id]
                break
            else:
                (await message.delete())
    else:
        self._anchors[ctx.channel.id] = ctx.message.id