Skip to main content

Notifications

Community site session details

Community site session details

Session Id : aVLZ2CtbJ7veowr20N7N1n
Power Apps - Power Apps Governance and Administ...
Answered

Delete CDS in Default environment

Like (0) ShareShare
ReportReport
Posted on 7 Jun 2020 09:36:39 by 860

Hello together,

 

I want to delete the CDS in my default environment. 

I think the same problem have @GarryPope, and @Dalebid1

 

I found this blog post: https://toddbaginski.com/blog/how-to-delete-a-previous-version-common-data-service-cds-database/ from @ToddBaginski (thank you for that!)

 

So with this, I find his mentioned Powershell cmdlets:

Remove-LegacyCDSDatabase

for 

Delete Common Data Service database

 

see https://docs.microsoft.com/en-us/power-platform/admin/powerapps-powershell#power-apps-cmdlets-for-administrators-preview

 

Is there any reason why this shouldn’t work?

 

 

4E6288D0-8B10-499D-8418-496A628DB238.jpeg

 

Categories:
  • NPrice99 Profile Picture
    1,284 on 29 Sep 2020 at 16:16:44
    Re: Delete CDS in Default environment

    Hi @max81 

     

    This was suggested back in 2018 but was rejected by Microsoft for whatever reason (Too hard ??)

     

    I dont know if you try again it will get approved.

     

    Regards

     

    Nigel

  • Mx81 Profile Picture
    860 on 22 Jun 2020 at 18:52:14
    Re: Delete CDS in Default environment

    Sounds great. I will check it out. 
    thank you very much. 

    I’ll coming back and write my feedback. 

  • Joel CustomerEffective Profile Picture
    3,224 on 22 Jun 2020 at 18:40:32
    Re: Delete CDS in Default environment

    There is a great option to do this--XrmToolBox User Role Manager. You could remove those roles from 8000 users in minutes. xrmtoolbox.com

    You could also use this tool to bulk add a less permissive security role to the users.

    without those permissions, users should be able to still create non CDs canvas apps and flows, but not solutions or CDs based apps.

    role manager.png

  • Mx81 Profile Picture
    860 on 22 Jun 2020 at 15:56:49
    Re: Delete CDS in Default environment

    @jlindstromso you mean I shall update all users? I'll have more than 8000 users there so that's not an option.

     

    I checked the Security Roles that the users get in the default environment:

    • Environment Maker

    • Common Data Service User

     

    With this, the user is able to create a solution.

     

    My target is - like in an environment without CDS - that the users can create Canvas Apps and Flows, but nothing else.

    Do you see a possibility to realize that?

  • Joel CustomerEffective Profile Picture
    3,224 on 22 Jun 2020 at 14:19:47
    Re: Delete CDS in Default environment

    Yes, that is controlled by the CDS security role given to the user.

     

    in ppac, select default environment, click settings

    User + Permissions

    Users

    Manage users in Dynamics 365

    Select user

    manage roles

    uncheck security roles

     

    This will prevent the users from creating solutions or doing anything with CDS in the default environment

     

  • Mx81 Profile Picture
    860 on 22 Jun 2020 at 13:20:19
    Re: Delete CDS in Default environment

    Thanks for your feedback.

     

    Can I modify the permission in that CDS so, that it is not possible to create solutions?

  • Verified answer
    Joel CustomerEffective Profile Picture
    3,224 on 22 Jun 2020 at 12:57:46
    Re: Delete CDS in Default environment

    Thanks for updating the question with your experience. If support is telling you that they can't delete it, that may be the way it is--they have recently changed some things about what environments that databases can be associated with.

     

    You may be stuck with it--I would take the approach of restricting CDS security roles in default environment, renaming environment so that it is clear not to use it. I've even seen people go so far as to rename it "apps that will be deleted" and set the expectation that if anybody creates business grade apps in the default environment, the apps or flows will be deleted.

  • Mx81 Profile Picture
    860 on 22 Jun 2020 at 11:35:42
    Re: Delete CDS in Default environment

    @jlindstromthanks for your feedback. I finally talked to microsoft and I was told that even the support cannot delete a CDS and I shall create a new idea for that.

    Are you sure, that they can delete a CDS?

  • Joel CustomerEffective Profile Picture
    3,224 on 08 Jun 2020 at 03:44:17
    Re: Delete CDS in Default environment

    the legacy cds database refers to the old cds 1.0, not the environments that you have now. Nobody still has CDS legacy databases.

    If you created a cds databse in default environment and want to remove it, the only  answer is opening a ticket with microsoft support and asking them to delete it.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard

Featured topics