How can I delete a subsite from SharePoint Online using a workflow designed in SPD2013

Hello,
I'm trying to build a workflow that will delete a subsite when an item in a list (Job Numbers) on a parent site is changed to a particular value.
My current workflow is triggered when an item in the Job Numbers list is changed. The workflow checks if the Completed column (a custom column of type choice) has the valued 'archived'. If it doesn't the workflow ends, if it does I want the workflow to delete
the subsite associated with that item (Job Number).
The subsite address is easily known as it is simply https://mysharepoint.sharepoint.com/current/[Job Number] 
I believe I need to use a webservice with the Call HTTP... action but I don't know which webservice or how to implement said webservice.
Specifically my questions are,
1. Is there a webservice I can call in a SPD2013 workflow to delete a subsite?
2. How do I use this webservice in my workflow?
Please help, I've been stuck on and off for weeks trying to find blogs and walk-throughs to shine some light on this.
Thanks in advance,
Dan

Please find your answers below...
1. Is there a webservice I can call in a SPD2013 workflow to delete a subsite?
Site Service : http://<server-url>/_vti_bin/sites.asmx
Web Method : DeleteWeb
Parameter : url(string)
2. How do I use this webservice in my workflow?
SPD2013 has introduced a new workflow action to call web services. Here is the article.

Similar Messages

  • How can I send an email from Sharepoint Online using sandbox solution?

    How can I send an email from Sharepoint Online using sandbox solution?
    If possible I do not want to use workflow.
    Is It possible to do it without using workflow?

    hello Steven Andrews,
    when any user sends a message using contact us page in SharePoint online.
    1. We are inserting item in Contact Us List . - This is working fine
    for anonymous users also. We have used Office365 anonymous codeplex wsp and it is working fine. Anonymous user is able to insert new record in the Contact Us List.
    2. Once, new record is inserted in Contact Us list, we want to fire email notifying thanks to the user on his email id as well as to our company x person for notification of new inquiry. 
    We tried using Workflow having impersonation step for  anonymous user but it is not working for Anonymous users. Workflow is able to sent the email if someone logged into system but not working for Anonymous user although workflow is getting started
    but not able to send email although used Imperonsation step.
    We are stuck into implementing second step.

  • How can I delete credit card from account to use gift card redeemable credit?

    I cannot use my gift card $20 because my declining credit card refuses my purchase.  I don't want to **** thing to use my credit card, I want to use my redeemable gift card **** it, so why won't it let me.  And I cannot delete my credit card becase there is NO WHERE to get rid of it!!!  Frustrating!!!

    Moorside01 wrote:
    I have the same issue. My son has an iPod Touch, but it seems that he has to have a credit card associated with the Live ID
    Live ID is for Microsoft.
    Are you saying you do not have the None option when you review his payment info?

  • How can I delete a file from Adobe Acrobat Reader DC?

    How can I delete a file from Adobe Acrobat Reader DC?

    What operating system do you use? Where do you store the files?

  • How can I delete an app from launchpad, that doesn't have the little cross in the left top corner. The app isn't an App Store app. The application is also not present anymore in my application's folder in finder.

    How can I delete an app from launchpad, that doesn't have the little cross in the left top corner. The app isn't an App Store app. The application is also not present anymore in my application's folder in finder.
    I tried to use the attached command through TERMINAL :
    sqlite3 ~/Library/Application\ Support/Dock/*.db "DELETE from apps WHERE title='Help';" && killall Dock
    sqlite3: Error: too many options: "DELETE from apps WHERE title='Help';"
    Use -help for a list of options.
    But i didn't work as I got the above error message.
    best regards
    Jeroen

    I'm in the same boat as you -- except that I manage both a school lab (volunteer job) and macs in the enterprise (pay job).  What I think we need is the Education Volume Purchasing Program
    http://www.apple.com/education/volume-purchase-program/faq.html
    Unfortunately this all seems a little rough around the edges -- for example, I have found updates for AppStore apps on the support.apple.com updates download site, but then when I install them via ARD they don't actually update the software.  (The AppStore icons still show as needing the updates, and the version info reports the old version.)  The documentation is also vague about which AppleID to use in which circumstance.  I think they just haven't finished thinking through the implications of the various procedures and policies upon the various kinds of customers.  When we deployed Mountain Lion on the school lab, we made an install usb and went around and installed it on each computer -- and it appears that you are on the honor system as far as paying for all of the licenses that you install.  We did!  But they appear to have no way to enforce it.
    So far, I have only deployed 9 Lion macs in my day job, and our "solution" to the AppStore showing updates problem has been to drag the AppStore icon off of the users' docks so they don't see them!

  • How can I delete some music from my iCloud but not from my iTunes in my computer? please??

    how can I delete some music from my iCloud but not from my iTunes in my computer? please??

    iCloud doesn't store your music.

  • How can i delete some books from ibook?

    How can i delete some books from ibook? It says: this book can't be opened. The book is corrupt. I can't open and I can't delete it

    I was unable to delete a book sample from my iPhone 5s running iOS 7.  This seems to be what worked for me.  I went to the Library and clicked "edit" in upper right side of the screen.  I then tapped one time on the book I wanted to remove and a blue check appeared at the bottom right corner of that book (presumably you could tap several at a time)  Anyway, when the blue check is on the book, you will see in the upper left of the screen the word "Delete" (mine was in red) I clicked that and then a confirming dialog came up from the bottom of the screen with the choices of "delete" or "cancel".  I chose "delete" and the book was gone.  Hope this helps.

  • How can i Delete all foto from my iphone and after some time get them one more time on it but not as a new album :)?

    How can i Delete all foto from my iphone and after some time get them one more time on it but not as a new album, i want them in the camera roll ?

    How can I delete EVERY THING off my Mac and have it like new?
    Boot from the software install DVD and do an "erase and install" when prompted.

  • How can I delete a video from an album on my iPhone 5?

    How can I delete a video from my iPhone 5? I created an album and accidentally placed a video in the album and want to delete it. Is it possible to delete a video or picture from an album?
    Thanks!

    How do I delete photos from my Photo Stream in iCloud?
    Individual photos cannot be deleted from your Photo Stream. You can, however, delete all the photos in your Photo Stream by clicking the Reset Photo Stream button in your account at icloud.com. The Reset Photo Stream button will instantly delete all Photo Stream photos stored in iCloud, but it will not remove any Photo Stream photos that have already been pushed to your devices."
    iCloud: Photo Stream FAQ

  • How can I delete an Invitation from March that shows as new/unanswered in my calendar and there is no ability to scroll to address availability?  iPad 3 5.1.1

    how can I delete an Invitation from March 2012 that shows as new/unanswered in my calendar and there is no ability to scroll to address availability?  iPad 3 5.1.1

    Thanks!
    Another question:  If @me.com and @icloud.com are interchangeable, is it possible to delete the @me.com address? (would like to de-clutter and avoid confusion in the future)

  • How can I delete Apple ID from my old phone that it is not with me?

    How can I delete Apple ID from my old phone?

    You cannot delete Apple ID. You can change the password so the Apple ID without the correct password will be useless for others.
    If you still have the old iPhone:
    Wipe iPhone/iPad/iPod touch clean
    There are a few steps to do:
    Switch off iMessage in Settings > Messages
    Switch off FaceTime in Settings > FaceTime (iPod touch 4th Generation or later, iPhone 4 or later and iPad 2 or later)
    Delete iCloud in Settings > iCloud > Delete Account
    Finally Settings > General > Reset > Erase All Content and Settings.
    If device is registered: Un-register your device: https://supportprofile.apple.com
    Now you can sell/give.
    Message was edited by: ckuan

  • How can I delete PDF files from my iMac desktop?

    How can I delete PDF files from my iMac desktop?

    Not on my system,When I try to dump if off in the trash it will not go. I get a message that says this file cannot be removed. I also tried going to File and clicking on Move to Trash. No dice.

  • How can I delete a song from iCloud / iTunes Match, but keep it on my Mac?

    How can I delete a song from iCloud / iTunes Match, but keep it on my Mac?
    I subscribed to iTunes Match a few weeks ago and my entire library was uploaded.  I do not want all of my library in the Cloud, especially given that there is a space/song limitation.  Any help is appreciated.
    Thanks!

    Apologies Brandon, we have moved on somewhat from your original question.
    What I have done is effectively used Michael's idea. I'll try to explain a little further.
    You can run iTunes match on up to 5 computers, and you can edit the iCloud library on any of them. Michael's idea works on the basis that, whilst you can edit the iTunes library, you can't remove songs from other computers.
    I have basically the same setup as you, but I also have a MacBook Air, which is running iTunes Match but without any music downloaded so it all streams.
    I added the songs on my main library, which then added them to the cloud. When they appeared on my MacBook I deleted them straight away. As there was no local copy I was asked if I wanted to delete them from the cloud, and I said yes. When I went back to my main computer I found that, as expected, they were still there, but the iCloud status is "removed". They are therefore on my library but not in iCloud.
    Since then I have run match updates a couple of times and there is no sign as yet that it will try to add them back to the cloud. It's too early to say that this is a definate answer to your problem, but it looks very hopeful.
    Our other discussions have moved onto the 25,000 son limit, which I note from your comment you may also be interested in. Watch this space.
    If you don't have access to a second computer to run the other library on then look back at Michael's post where he explains how to set it up on your main computer.
    Hope that clarifies a bit.

  • How can I delete an app from the cloud??

    how can I delete an app from the cloud, so nobody can download it again to my phone?? please I tried from the computer but it just hide the app from purchased, and still appears in the app store with the cloud on it

    At the present time, you can't hide or delete an app from your purchased list on your phone.  Prior to iOS 6 you could hide it; there has never been an option to delete it.

  • How can i delete purchased items from the cloud in iTunes

    how can i delete purchased items from the cloud in iTunes

    I had this problem as well. You can't delete them but you can hide them by swiping across from the cloud to. The other side then pressing hide

Maybe you are looking for