diff --git a/wp-includes/class-wp-xmlrpc-server.php b/wp-includes/class-wp-xmlrpc-server.php
index a5273f9..0eb3944 100644
--- a/wp-includes/class-wp-xmlrpc-server.php
+++ b/wp-includes/class-wp-xmlrpc-server.php
@@ -75,6 +75,7 @@ class wp_xmlrpc_server extends IXR_Server {
 			'wp.getCommentStatusList' => 'this:wp_getCommentStatusList',
 			'wp.getMediaItem'		=> 'this:wp_getMediaItem',
 			'wp.getMediaLibrary'	=> 'this:wp_getMediaLibrary',
+			'wp.deleteMediaItem'		=> 'this:wp_deleteMediaItem',
 			'wp.getPostFormats'     => 'this:wp_getPostFormats',
 			'wp.getPostType'		=> 'this:wp_getPostType',
 			'wp.getPostTypes'		=> 'this:wp_getPostTypes',
@@ -3023,6 +3024,42 @@ class wp_xmlrpc_server extends IXR_Server {
 	}
 
 	/**
+	 * Delete a media item by ID
+	 *
+	 * @since 3.5.0
+	 *
+	 * @param array $args Method parameters. Contains:
+	 *  - blog_id
+	 *  - username
+	 *  - password
+	 *  - attachment_id
+	 * @return false if delete failed, attachment data on success.
+	 */
+	function wp_deleteMediaItem( $args ) {
+		$this->escape( $args );
+
+		$blog_id = (int) $args[0];
+		$username = $args[1];
+		$password = $args[2];
+		$attachment_id = (int) $args[3];
+
+		if ( !$user = $this->login( $username, $password ) )
+			return $this->error;
+
+		do_action( 'xmlrpc_call', 'wp.deleteMediaItem' );
+
+		if ( !current_user_can('upload_files') ) {
+			$this->error = new IXR_Error( 401, __( 'You do not have permission to delete files.' ) );
+			return $this->error;
+		}
+
+		if ( ! $attachment = get_post($attachment_id) )
+			return new IXR_Error( 404, __( 'Invalid attachment ID.' ) );
+
+		return wp_delete_attachment( $attachment_id );
+	}
+
+	/**
 	  * Retrieves a list of post formats used by the site
 	  *
 	  * @since 3.1
